pub enum Element {
Part(Part),
Chapter(Chapter),
Section(Section),
Paragraph(Paragraph),
Text(Text),
Input(Input),
Environment(Environment),
UserDefined(UserDefined),
List(List),
}Expand description
Elements enum that contains all elements
- Part
- Chapter
- Section (Headers)
- Paragraph
- Text (Italic, bold, verbatim, etc.)
- Input
- Environment
(\begin{}...\end{}) - UserDefiend (any kind of custom code)
- List (enumerate or itemize)
Variants
Part(Part)
Chapter(Chapter)
Section(Section)
Paragraph(Paragraph)
Text(Text)
Input(Input)
Environment(Environment)
UserDefined(UserDefined)
List(List)
Implementations
sourceimpl Element
impl Element
sourcepub fn loop_through(&self) -> String
pub fn loop_through(&self) -> String
Recursive function to get latex string for all elements inside struct
sourcepub fn loop_through_parallel(&self) -> String
pub fn loop_through_parallel(&self) -> String
Parallel version of loop_through using rayon
Trait Implementations
sourceimpl Convert for Element
impl Convert for Element
sourcefn to_latex_string(&self) -> String
fn to_latex_string(&self) -> String
Takes reference of the element and uses it’s &self.0 for the string
sourceimpl From<Environment> for Element
impl From<Environment> for Element
sourcefn from(e: Environment) -> Self
fn from(e: Environment) -> Self
Converts to this type from the input type.
sourceimpl From<UserDefined> for Element
impl From<UserDefined> for Element
sourcefn from(u: UserDefined) -> Self
fn from(u: UserDefined) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more