pub struct Token(pub u32);Expand description
A TeX token.
Tuple Fields§
§0: u32Implementations§
Source§impl Token
impl Token
Sourcepub const LEFT_BRACE: Token
pub const LEFT_BRACE: Token
A left brace { token (category 1, character {).
Sourcepub const RIGHT_BRACE: Token
pub const RIGHT_BRACE: Token
A right brace } token.
Sourcepub const fn char(cmd: Cmd, chr: u32) -> Token
pub const fn char(cmd: Cmd, chr: u32) -> Token
A character token with command cmd (normally a category code).
Sourcepub const fn cmd_code(self) -> u32
pub const fn cmd_code(self) -> u32
The raw command code of a character token (no enum conversion).
Sourcepub const fn match_token(chr: u32) -> Token
pub const fn match_token(chr: u32) -> Token
A match token for parameter n in a parameter text. TeX stores the
parameter character (e.g. #) here.
Trait Implementations§
impl Copy for Token
impl Eq for Token
Source§impl Ord for Token
impl Ord for Token
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Token
impl PartialOrd for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin 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