pub enum SegmentClass {
Heading(u8),
Body,
}Expand description
The structural role of a text segment within the document.
Variants§
Heading(u8)
A heading at the given level (1 = largest, 4 = smallest recognised heading).
Body
Regular body text.
Trait Implementations§
Source§impl Clone for SegmentClass
impl Clone for SegmentClass
Source§fn clone(&self) -> SegmentClass
fn clone(&self) -> SegmentClass
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 SegmentClass
impl Debug for SegmentClass
Source§impl PartialEq for SegmentClass
impl PartialEq for SegmentClass
impl StructuralPartialEq for SegmentClass
Auto Trait Implementations§
impl Freeze for SegmentClass
impl RefUnwindSafe for SegmentClass
impl Send for SegmentClass
impl Sync for SegmentClass
impl Unpin for SegmentClass
impl UnsafeUnpin for SegmentClass
impl UnwindSafe for SegmentClass
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