#[repr(u8)]pub enum HeaderLevel {
H1 = 1,
H2 = 2,
H3 = 3,
H4 = 4,
H5 = 5,
H6 = 6,
}Expand description
A Markdown ATX header level.
Using an enum keeps values outside Markdown’s h1 through h6 range out
of an already-parsed schema.
Variants§
H1 = 1
A level-one heading (#).
H2 = 2
A level-two heading (##).
H3 = 3
A level-three heading (###).
H4 = 4
A level-four heading (####).
H5 = 5
A level-five heading (#####).
H6 = 6
A level-six heading (######).
Trait Implementations§
Source§impl Clone for HeaderLevel
impl Clone for HeaderLevel
Source§fn clone(&self) -> HeaderLevel
fn clone(&self) -> HeaderLevel
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 HeaderLevel
Source§impl Debug for HeaderLevel
impl Debug for HeaderLevel
impl Eq for HeaderLevel
Source§impl Hash for HeaderLevel
impl Hash for HeaderLevel
Source§impl Ord for HeaderLevel
impl Ord for HeaderLevel
Source§fn cmp(&self, other: &HeaderLevel) -> Ordering
fn cmp(&self, other: &HeaderLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HeaderLevel
impl PartialEq for HeaderLevel
Source§impl PartialOrd for HeaderLevel
impl PartialOrd for HeaderLevel
impl StructuralPartialEq for HeaderLevel
Auto Trait Implementations§
impl Freeze for HeaderLevel
impl RefUnwindSafe for HeaderLevel
impl Send for HeaderLevel
impl Sync for HeaderLevel
impl Unpin for HeaderLevel
impl UnsafeUnpin for HeaderLevel
impl UnwindSafe for HeaderLevel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.