pub enum ResolvedToken<'a, ET: EngineTypes> {
Tk {
char: ET::Char,
code: CommandCode,
},
Cmd(Option<&'a TeXCommand<ET>>),
}Expand description
A Token that has been resolved to a TeXCommand or a character (if not a control sequence / active character).
Variants§
Tk
The token is a simple character with the given CommandCode.
Cmd(Option<&'a TeXCommand<ET>>)
The token is a control sequence or active character, which
is currently defined as the give TeXCommand (or undefined).
Trait Implementations§
Auto Trait Implementations§
impl<'a, ET> Freeze for ResolvedToken<'a, ET>
impl<'a, ET> RefUnwindSafe for ResolvedToken<'a, ET>where
<ET as EngineTypes>::Char: RefUnwindSafe,
<ET as EngineTypes>::Font: RefUnwindSafe,
<ET as EngineTypes>::Token: RefUnwindSafe,
impl<'a, ET> Send for ResolvedToken<'a, ET>
impl<'a, ET> Sync for ResolvedToken<'a, ET>
impl<'a, ET> Unpin for ResolvedToken<'a, ET>
impl<'a, ET> UnsafeUnpin for ResolvedToken<'a, ET>
impl<'a, ET> UnwindSafe for ResolvedToken<'a, ET>where
<ET as EngineTypes>::Char: UnwindSafe + RefUnwindSafe,
<ET as EngineTypes>::Font: RefUnwindSafe,
<ET as EngineTypes>::Token: RefUnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more