pub enum Reversion {
Closure(DigestedReversionClosure),
Tokens(Tokens),
}Variants§
Closure(DigestedReversionClosure)
Tokens(Tokens)
Trait Implementations§
Source§impl From<&str> for Reversion
NOTE (TeXString guard): this and From<&str> for ExpansionBody below are
the residual back doors into the tokenizer — a String reaches them as
s.as_str() without ever naming its intent. They stay on plain &str
because narrowing them to &'static str would reject the many legitimate
runtime-built bodies. Anything that flattens Tokens must still go through
Tokens::untex_string before it gets
here.
impl From<&str> for Reversion
NOTE (TeXString guard): this and From<&str> for ExpansionBody below are
the residual back doors into the tokenizer — a String reaches them as
s.as_str() without ever naming its intent. They stay on plain &str
because narrowing them to &'static str would reject the many legitimate
runtime-built bodies. Anything that flattens Tokens must still go through
Tokens::untex_string before it gets
here.
Auto Trait Implementations§
impl !RefUnwindSafe for Reversion
impl !Send for Reversion
impl !Sync for Reversion
impl !UnwindSafe for Reversion
impl Freeze for Reversion
impl Unpin for Reversion
impl UnsafeUnpin for Reversion
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