pub enum HeadingLevel {
Database,
MajorPart,
Section,
SubSection,
SubSubSection,
Statement,
}
Expand description
The different types of heading markers, as defined in the Metamath book, section 4.4.1
Variants§
Database
Virtual top-level heading, used as a root node
MajorPart
Major part
Section
Section
SubSection
Subsection
SubSubSection
Subsubsection
Statement
Statement
Trait Implementations§
Source§impl Clone for HeadingLevel
impl Clone for HeadingLevel
Source§fn clone(&self) -> HeadingLevel
fn clone(&self) -> HeadingLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HeadingLevel
impl Debug for HeadingLevel
Source§impl Default for HeadingLevel
impl Default for HeadingLevel
Source§fn default() -> HeadingLevel
fn default() -> HeadingLevel
Returns the “default value” for a type. Read more
Source§impl Ord for HeadingLevel
impl Ord for HeadingLevel
Source§fn cmp(&self, other: &HeadingLevel) -> Ordering
fn cmp(&self, other: &HeadingLevel) -> Ordering
1.21.0 · 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
Source§impl PartialEq for HeadingLevel
impl PartialEq for HeadingLevel
Source§impl PartialOrd for HeadingLevel
impl PartialOrd for HeadingLevel
impl Copy for HeadingLevel
impl Eq for HeadingLevel
impl StructuralPartialEq for HeadingLevel
Auto Trait Implementations§
impl Freeze for HeadingLevel
impl RefUnwindSafe for HeadingLevel
impl Send for HeadingLevel
impl Sync for HeadingLevel
impl Unpin for HeadingLevel
impl UnwindSafe for HeadingLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more