pub struct Token { /* private fields */ }
Expand description
A TeX token.
Implementations§
source§impl Token
impl Token
pub fn new_begin_group(c: char, trace_key: Key) -> Token
pub fn new_end_group(c: char, trace_key: Key) -> Token
pub fn new_math_shift(c: char, trace_key: Key) -> Token
pub fn new_alignment_tab(c: char, trace_key: Key) -> Token
pub fn new_parameter(c: char, trace_key: Key) -> Token
pub fn new_superscript(c: char, trace_key: Key) -> Token
pub fn new_subscript(c: char, trace_key: Key) -> Token
pub fn new_space(c: char, trace_key: Key) -> Token
pub fn new_letter(c: char, trace_key: Key) -> Token
pub fn new_other(c: char, trace_key: Key) -> Token
pub fn new_active_character(c: char, trace_key: Key) -> Token
pub fn new_control_sequence(name: CsName, trace_key: Key) -> Token
pub fn new_from_value(value: Value, trace_key: Key) -> Token
pub fn value(&self) -> Value
pub fn trace_key(&self) -> Key
pub fn cat_code(&self) -> Option<CatCode>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Token
impl<'de> Deserialize<'de> for Token
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 PartialEq<Token> for Token
impl PartialEq<Token> for Token
impl Copy for Token
impl Eq for Token
impl StructuralEq for 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§
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