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§
Source§impl MathToken
impl MathToken
pub fn special_macro(&self) -> Option<&SpecialMacro>
pub fn special_macro_mut(&mut self) -> Option<&mut SpecialMacro>
pub fn into_special_macro(self) -> Option<SpecialMacro>
pub fn verb(&self) -> Option<&Verb>
pub fn verb_mut(&mut self) -> Option<&mut Verb>
pub fn into_verb(self) -> Option<Verb>
pub fn verbatim_environment(&self) -> Option<&VerbatimEnvironment>
pub fn verbatim_environment_mut(&mut self) -> Option<&mut VerbatimEnvironment>
pub fn into_verbatim_environment(self) -> Option<VerbatimEnvironment>
pub fn display_math(&self) -> Option<&DisplayMath>
pub fn display_math_mut(&mut self) -> Option<&mut DisplayMath>
pub fn into_display_math(self) -> Option<DisplayMath>
pub fn parenthesized_inline_math(&self) -> Option<&ParenthesizedInlineMath>
pub fn parenthesized_inline_math_mut( &mut self, ) -> Option<&mut ParenthesizedInlineMath>
pub fn into_parenthesized_inline_math(self) -> Option<ParenthesizedInlineMath>
pub fn math_environment(&self) -> Option<&MathEnvironment>
pub fn math_environment_mut(&mut self) -> Option<&mut MathEnvironment>
pub fn into_math_environment(self) -> Option<MathEnvironment>
pub fn environment(&self) -> Option<&Environment>
pub fn environment_mut(&mut self) -> Option<&mut Environment>
pub fn into_environment(self) -> Option<Environment>
pub fn macro_(&self) -> Option<&Macro>
pub fn macro_mut(&mut self) -> Option<&mut Macro>
pub fn into_macro(self) -> Option<Macro>
pub fn full_comment(&self) -> Option<&FullComment>
pub fn full_comment_mut(&mut self) -> Option<&mut FullComment>
pub fn into_full_comment(self) -> Option<FullComment>
pub fn math_group(&self) -> Option<&MathGroup>
pub fn math_group_mut(&mut self) -> Option<&mut MathGroup>
pub fn into_math_group(self) -> Option<MathGroup>
pub fn alignment_tab(&self) -> Option<&AlignmentTab>
pub fn alignment_tab_mut(&mut self) -> Option<&mut AlignmentTab>
pub fn into_alignment_tab(self) -> Option<AlignmentTab>
pub fn macro_parameter(&self) -> Option<&MacroParameter>
pub fn macro_parameter_mut(&mut self) -> Option<&mut MacroParameter>
pub fn into_macro_parameter(self) -> Option<MacroParameter>
pub fn superscript(&self) -> Option<&Superscript>
pub fn superscript_mut(&mut self) -> Option<&mut Superscript>
pub fn into_superscript(self) -> Option<Superscript>
pub fn subscript(&self) -> Option<&Subscript>
pub fn subscript_mut(&mut self) -> Option<&mut Subscript>
pub fn into_subscript(self) -> Option<Subscript>
pub fn ignore(&self) -> Option<&Ignore>
pub fn ignore_mut(&mut self) -> Option<&mut Ignore>
pub fn into_ignore(self) -> Option<Ignore>
pub fn whitespace(&self) -> Option<&Whitespace>
pub fn whitespace_mut(&mut self) -> Option<&mut Whitespace>
pub fn into_whitespace(self) -> Option<Whitespace>
pub fn number(&self) -> Option<&Number>
pub fn number_mut(&mut self) -> Option<&mut Number>
pub fn number_char(self) -> Option<Number>
pub fn any_char(&self) -> Option<&AnyChar>
pub fn any_char_mut(&mut self) -> Option<&mut AnyChar>
pub fn into_any_char(self) -> Option<AnyChar>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MathToken
impl RefUnwindSafe for MathToken
impl Send for MathToken
impl Sync for MathToken
impl Unpin for MathToken
impl UnwindSafe for MathToken
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