Enum tex_parser::ast::MathToken[][src]

pub enum MathToken {
    SpecialMacro(SpecialMacro),
    Macro(Macro),
    FullComment(FullComment),
    MathGroup(MathGroup),
    AlignmentTab(AlignmentTab),
    MacroParameter(MacroParameter),
    Superscript(Superscript),
    Subscript(Subscript),
    Ignore(Ignore),
    Whitespace(Whitespace),
    Number(Number),
    AnyChar(AnyChar),
}

Variants

SpecialMacro(SpecialMacro)
Macro(Macro)
FullComment(FullComment)
MathGroup(MathGroup)
AlignmentTab(AlignmentTab)
MacroParameter(MacroParameter)
Superscript(Superscript)
Subscript(Subscript)
Ignore(Ignore)
Whitespace(Whitespace)
Number(Number)
AnyChar(AnyChar)

Implementations

impl MathToken[src]

pub fn special_macro(&self) -> Option<&SpecialMacro>[src]

pub fn special_macro_mut(&mut self) -> Option<&mut SpecialMacro>[src]

pub fn into_special_macro(self) -> Option<SpecialMacro>[src]

pub fn verb(&self) -> Option<&Verb>[src]

pub fn verb_mut(&mut self) -> Option<&mut Verb>[src]

pub fn into_verb(self) -> Option<Verb>[src]

pub fn verbatim_environment(&self) -> Option<&VerbatimEnvironment>[src]

pub fn verbatim_environment_mut(&mut self) -> Option<&mut VerbatimEnvironment>[src]

pub fn into_verbatim_environment(self) -> Option<VerbatimEnvironment>[src]

pub fn display_math(&self) -> Option<&DisplayMath>[src]

pub fn display_math_mut(&mut self) -> Option<&mut DisplayMath>[src]

pub fn into_display_math(self) -> Option<DisplayMath>[src]

pub fn parenthesized_inline_math(&self) -> Option<&ParenthesizedInlineMath>[src]

pub fn parenthesized_inline_math_mut(
    &mut self
) -> Option<&mut ParenthesizedInlineMath>
[src]

pub fn into_parenthesized_inline_math(self) -> Option<ParenthesizedInlineMath>[src]

pub fn math_environment(&self) -> Option<&MathEnvironment>[src]

pub fn math_environment_mut(&mut self) -> Option<&mut MathEnvironment>[src]

pub fn into_math_environment(self) -> Option<MathEnvironment>[src]

pub fn environment(&self) -> Option<&Environment>[src]

pub fn environment_mut(&mut self) -> Option<&mut Environment>[src]

pub fn into_environment(self) -> Option<Environment>[src]

pub fn macro_(&self) -> Option<&Macro>[src]

pub fn macro_mut(&mut self) -> Option<&mut Macro>[src]

pub fn into_macro(self) -> Option<Macro>[src]

pub fn full_comment(&self) -> Option<&FullComment>[src]

pub fn full_comment_mut(&mut self) -> Option<&mut FullComment>[src]

pub fn into_full_comment(self) -> Option<FullComment>[src]

pub fn math_group(&self) -> Option<&MathGroup>[src]

pub fn math_group_mut(&mut self) -> Option<&mut MathGroup>[src]

pub fn into_math_group(self) -> Option<MathGroup>[src]

pub fn alignment_tab(&self) -> Option<&AlignmentTab>[src]

pub fn alignment_tab_mut(&mut self) -> Option<&mut AlignmentTab>[src]

pub fn into_alignment_tab(self) -> Option<AlignmentTab>[src]

pub fn macro_parameter(&self) -> Option<&MacroParameter>[src]

pub fn macro_parameter_mut(&mut self) -> Option<&mut MacroParameter>[src]

pub fn into_macro_parameter(self) -> Option<MacroParameter>[src]

pub fn superscript(&self) -> Option<&Superscript>[src]

pub fn superscript_mut(&mut self) -> Option<&mut Superscript>[src]

pub fn into_superscript(self) -> Option<Superscript>[src]

pub fn subscript(&self) -> Option<&Subscript>[src]

pub fn subscript_mut(&mut self) -> Option<&mut Subscript>[src]

pub fn into_subscript(self) -> Option<Subscript>[src]

pub fn ignore(&self) -> Option<&Ignore>[src]

pub fn ignore_mut(&mut self) -> Option<&mut Ignore>[src]

pub fn into_ignore(self) -> Option<Ignore>[src]

pub fn whitespace(&self) -> Option<&Whitespace>[src]

pub fn whitespace_mut(&mut self) -> Option<&mut Whitespace>[src]

pub fn into_whitespace(self) -> Option<Whitespace>[src]

pub fn number(&self) -> Option<&Number>[src]

pub fn number_mut(&mut self) -> Option<&mut Number>[src]

pub fn number_char(self) -> Option<Number>[src]

pub fn any_char(&self) -> Option<&AnyChar>[src]

pub fn any_char_mut(&mut self) -> Option<&mut AnyChar>[src]

pub fn into_any_char(self) -> Option<AnyChar>[src]

Trait Implementations

impl Clone for MathToken[src]

impl Debug for MathToken[src]

impl GetPos for MathToken[src]

impl Serialize for MathToken[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.