Enum texlang::token::CommandRef
source · pub enum CommandRef {
ControlSequence(CsName),
ActiveCharacter(char),
}
Expand description
The value of a token that references a command
Variants§
Implementations§
source§impl CommandRef
impl CommandRef
pub fn to_string(&self, cs_name_interner: &CsNameInterner) -> String
Trait Implementations§
source§impl Clone for CommandRef
impl Clone for CommandRef
source§fn clone(&self) -> CommandRef
fn clone(&self) -> CommandRef
Returns a copy 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 CommandRef
impl Debug for CommandRef
source§impl<'de> Deserialize<'de> for CommandRef
impl<'de> Deserialize<'de> for CommandRef
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for CommandRef
impl Hash for CommandRef
source§impl<S: TexlangState> Parsable<S> for CommandRef
impl<S: TexlangState> Parsable<S> for CommandRef
source§fn parse_impl(input: &mut ExpandedStream<S>) -> Result<Self, Box<Error>>
fn parse_impl(input: &mut ExpandedStream<S>) -> Result<Self, Box<Error>>
Parses a value from the vm::ExpandedStream.
source§impl PartialEq<CommandRef> for CommandRef
impl PartialEq<CommandRef> for CommandRef
source§fn eq(&self, other: &CommandRef) -> bool
fn eq(&self, other: &CommandRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CommandRef
impl Serialize for CommandRef
impl Copy for CommandRef
impl Eq for CommandRef
impl StructuralEq for CommandRef
impl StructuralPartialEq for CommandRef
Auto Trait Implementations§
impl RefUnwindSafe for CommandRef
impl Send for CommandRef
impl Sync for CommandRef
impl Unpin for CommandRef
impl UnwindSafe for CommandRef
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