pub enum HeadingKind {
Atx,
Setext,
}Expand description
Which heading syntax produced a Heading.
Variants§
Atx
ATX heading: # Title … ###### Title.
Setext
Setext heading: Title underlined with === (level 1) or --- (level 2).
Trait Implementations§
Source§impl Clone for HeadingKind
impl Clone for HeadingKind
Source§fn clone(&self) -> HeadingKind
fn clone(&self) -> HeadingKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HeadingKind
Source§impl Debug for HeadingKind
impl Debug for HeadingKind
impl Eq for HeadingKind
Source§impl PartialEq for HeadingKind
impl PartialEq for HeadingKind
Source§fn eq(&self, other: &HeadingKind) -> bool
fn eq(&self, other: &HeadingKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HeadingKind
Auto Trait Implementations§
impl Freeze for HeadingKind
impl RefUnwindSafe for HeadingKind
impl Send for HeadingKind
impl Sync for HeadingKind
impl Unpin for HeadingKind
impl UnsafeUnpin for HeadingKind
impl UnwindSafe for HeadingKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more