Enum tex_parser::ast::Token[][src]

pub enum Token {
    SpecialMacro(SpecialMacro),
    Macro(Macro),
    FullComment(FullComment),
    Group(Group),
    DollarInlineMath(DollarInlineMath),
    AlignmentTab(AlignmentTab),
    ParBreak(ParBreak),
    MacroParameter(MacroParameter),
    Ignore(Ignore),
    Number(Number),
    Whitespace(Whitespace),
    Punctuation(Punctuation),
    CharTokens(CharTokens),
    BeginGroup(BeginGroup),
    EndGroup(EndGroup),
    MathShift(MathShift),
}

Variants

SpecialMacro(SpecialMacro)
Macro(Macro)
FullComment(FullComment)
Group(Group)
DollarInlineMath(DollarInlineMath)
AlignmentTab(AlignmentTab)
ParBreak(ParBreak)
MacroParameter(MacroParameter)
Ignore(Ignore)
Number(Number)
Whitespace(Whitespace)
Punctuation(Punctuation)
CharTokens(CharTokens)
BeginGroup(BeginGroup)
EndGroup(EndGroup)
MathShift(MathShift)

Implementations

impl Token[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 group(&self) -> Option<&Group>[src]

pub fn group_mut(&mut self) -> Option<&mut Group>[src]

pub fn into_group(self) -> Option<Group>[src]

pub fn dollar_inline_math(&self) -> Option<&DollarInlineMath>[src]

pub fn dollar_inline_math_mut(&mut self) -> Option<&mut DollarInlineMath>[src]

pub fn into_dollar_inline_math(self) -> Option<DollarInlineMath>[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 par_break(&self) -> Option<&ParBreak>[src]

pub fn par_break_mut(&mut self) -> Option<&mut ParBreak>[src]

pub fn into_par_break(self) -> Option<ParBreak>[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 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 number(&self) -> Option<&Number>[src]

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

pub fn into_number(self) -> Option<Number>[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 punctuation(&self) -> Option<&Punctuation>[src]

pub fn punctuation_mut(&mut self) -> Option<&mut Punctuation>[src]

pub fn into_punctuation(self) -> Option<Punctuation>[src]

pub fn char_tokens(&self) -> Option<&CharTokens>[src]

pub fn char_tokens_mut(&mut self) -> Option<&mut CharTokens>[src]

pub fn into_char_tokens(self) -> Option<CharTokens>[src]

pub fn begin_group(&self) -> Option<&BeginGroup>[src]

pub fn begin_group_mut(&mut self) -> Option<&mut BeginGroup>[src]

pub fn into_begin_group(self) -> Option<BeginGroup>[src]

pub fn end_group(&self) -> Option<&EndGroup>[src]

pub fn end_group_mut(&mut self) -> Option<&mut EndGroup>[src]

pub fn into_end_group(self) -> Option<EndGroup>[src]

pub fn math_shift(&self) -> Option<&MathShift>[src]

pub fn math_shift_mut(&mut self) -> Option<&mut MathShift>[src]

pub fn into_math_shift(self) -> Option<MathShift>[src]

Trait Implementations

impl Clone for Token[src]

impl Debug for Token[src]

impl GetPos for Token[src]

impl Serialize for Token[src]

impl SplitCharTokensIterHelper for Token[src]

type Item = Token

impl<'a> SplitCharTokensIterHelper for &'a Token[src]

type Item = Cow<'a, Token>

Auto Trait Implementations

impl RefUnwindSafe for Token

impl Send for Token

impl Sync for Token

impl Unpin for Token

impl UnwindSafe for Token

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.