pub enum CommandName {
Generic,
BeginEnvironment,
EndEnvironment,
BeginMath,
EndMath,
ErrorBeginEnvironment,
ErrorEndEnvironment,
If(IfCommandName),
Else,
EndIf,
Left,
Right,
}Expand description
The command name used by parser
Variants§
Generic
Rest of the command names
BeginEnvironment
clause of Environment: \begin
EndEnvironment
clause of Environment: \end
BeginMath
clause of Math: ( or [
EndMath
clause of Math: ) or ]
ErrorBeginEnvironment
clause of Environment: \begin, but error
ErrorEndEnvironment
clause of Environment: \end, but error
If(IfCommandName)
clause of IfStatements: \if…
Else
clause of IfStatements: \else
EndIf
clause of IfStatements: \fi
Left
clause of LRItem: \left
Right
clause of LRItem: \right
Trait Implementations§
Source§impl Clone for CommandName
impl Clone for CommandName
Source§fn clone(&self) -> CommandName
fn clone(&self) -> CommandName
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandName
impl Debug for CommandName
Source§impl Hash for CommandName
impl Hash for CommandName
Source§impl Ord for CommandName
impl Ord for CommandName
Source§fn cmp(&self, other: &CommandName) -> Ordering
fn cmp(&self, other: &CommandName) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CommandName
impl PartialEq for CommandName
Source§impl PartialOrd for CommandName
impl PartialOrd for CommandName
impl Copy for CommandName
impl Eq for CommandName
impl StructuralPartialEq for CommandName
Auto Trait Implementations§
impl Freeze for CommandName
impl RefUnwindSafe for CommandName
impl Send for CommandName
impl Sync for CommandName
impl Unpin for CommandName
impl UnwindSafe for CommandName
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.