pub enum Component {
Show 20 variants
Part(Part),
Chapter(Chapter),
Section(Section),
Subsection(Subsection),
Paragraph(Paragraph),
Line(Line),
Frame(Frame),
Block(Block),
Input(Input),
Environment(Environment),
List(List),
Figure(Figure),
TextChunk(TextChunk),
Command(String),
Image(Image),
Table(Table),
Row(Row),
Builtin(Builtin),
Label(Label),
Reference(Reference),
}Expand description
One of the main structs, almost everything you put into a document is a Component
Variants§
Part(Part)
Chapter(Chapter)
Section(Section)
Subsection(Subsection)
Paragraph(Paragraph)
Line(Line)
Frame(Frame)
Block(Block)
Input(Input)
Environment(Environment)
List(List)
Figure(Figure)
TextChunk(TextChunk)
Command(String)
Image(Image)
Outside the figure environment. Sometimes useful.
Table(Table)
Row(Row)
Builtin(Builtin)
Label(Label)
Reference(Reference)
Implementations§
Trait Implementations§
Source§impl From<Environment> for Component
impl From<Environment> for Component
Source§fn from(value: Environment) -> Self
fn from(value: Environment) -> Self
Converts to this type from the input type.
Source§impl From<Subsection> for Component
impl From<Subsection> for Component
Source§fn from(value: Subsection) -> Self
fn from(value: Subsection) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnwindSafe for Component
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