Enum tex_parser::ast::MathToken [−][src]
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]
&mut self
) -> Option<&mut ParenthesizedInlineMath>
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
impl RefUnwindSafe for MathToken
impl Send for MathToken
impl Sync for MathToken
impl Unpin for MathToken
impl UnwindSafe for MathToken
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,