pub enum StateChange<ET: EngineTypes> {
Show 27 variants
Catcode {
char: ET::Char,
old: CategoryCode,
},
SfCode {
char: ET::Char,
old: u16,
},
DelCode {
char: ET::Char,
old: ET::Int,
},
LcCode {
char: ET::Char,
old: ET::Char,
},
UcCode {
char: ET::Char,
old: ET::Char,
},
MathCode {
char: ET::Char,
old: u32,
},
ParShape {
old: Vec<(ET::Dim, ET::Dim)>,
},
CurrentFont(ET::Font),
TextFont {
idx: u8,
old: ET::Font,
},
ScriptFont {
idx: u8,
old: ET::Font,
},
ScriptScriptFont {
idx: u8,
old: ET::Font,
},
EndlineChar {
old: Option<ET::Char>,
},
EscapeChar {
old: Option<ET::Char>,
},
NewlineChar {
old: Option<ET::Char>,
},
IntRegister {
idx: usize,
old: ET::Int,
},
DimRegister {
idx: usize,
old: ET::Dim,
},
SkipRegister {
idx: usize,
old: Skip<ET::Dim>,
},
MuSkipRegister {
idx: usize,
old: MuSkip<ET::MuDim>,
},
BoxRegister {
idx: usize,
old: Option<TeXBox<ET>>,
},
ToksRegister {
idx: usize,
old: TokenList<ET::Token>,
},
PrimitiveInt {
name: PrimitiveIdentifier,
old: ET::Int,
},
PrimitiveDim {
name: PrimitiveIdentifier,
old: ET::Dim,
},
PrimitiveToks {
name: PrimitiveIdentifier,
old: TokenList<ET::Token>,
},
PrimitiveSkip {
name: PrimitiveIdentifier,
old: Skip<ET::Dim>,
},
PrimitiveMuSkip {
name: PrimitiveIdentifier,
old: MuSkip<ET::MuDim>,
},
Command {
name: ET::CSName,
old: Option<TeXCommand<ET>>,
},
AcCommand {
char: ET::Char,
old: Option<TeXCommand<ET>>,
},
}Expand description
A change to a State, to be potentially rolled back when a group ends.
Variants§
Catcode
SfCode
DelCode
LcCode
UcCode
MathCode
ParShape
CurrentFont(ET::Font)
TextFont
ScriptFont
ScriptScriptFont
EndlineChar
EscapeChar
NewlineChar
IntRegister
DimRegister
SkipRegister
MuSkipRegister
BoxRegister
ToksRegister
PrimitiveInt
PrimitiveDim
PrimitiveToks
PrimitiveSkip
PrimitiveMuSkip
Command
AcCommand
Trait Implementations§
Source§impl<ET: Clone + EngineTypes> Clone for StateChange<ET>
impl<ET: Clone + EngineTypes> Clone for StateChange<ET>
Source§fn clone(&self) -> StateChange<ET>
fn clone(&self) -> StateChange<ET>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<ET> !Freeze for StateChange<ET>
impl<ET> !RefUnwindSafe for StateChange<ET>
impl<ET> Send for StateChange<ET>where
<ET as EngineTypes>::Char: Send,
<ET as EngineTypes>::Int: Send,
<ET as EngineTypes>::Font: Send,
<ET as EngineTypes>::Dim: Send,
<ET as EngineTypes>::CSName: Send,
<ET as EngineTypes>::MuDim: Send,
<<ET as EngineTypes>::File as File>::SourceRefID: Send,
<ET as EngineTypes>::CustomNode: Send,
ET: Send,
impl<ET> !Sync for StateChange<ET>
impl<ET> Unpin for StateChange<ET>where
<ET as EngineTypes>::Char: Unpin,
<ET as EngineTypes>::Int: Unpin,
<ET as EngineTypes>::Font: Unpin,
<ET as EngineTypes>::Dim: Unpin,
<ET as EngineTypes>::CSName: Unpin,
<ET as EngineTypes>::MuDim: Unpin,
<<ET as EngineTypes>::File as File>::SourceRefID: Unpin,
<ET as EngineTypes>::Token: Unpin,
impl<ET> UnsafeUnpin for StateChange<ET>where
<ET as EngineTypes>::Char: UnsafeUnpin,
<ET as EngineTypes>::Int: UnsafeUnpin,
<ET as EngineTypes>::Font: UnsafeUnpin,
<ET as EngineTypes>::Dim: UnsafeUnpin,
<ET as EngineTypes>::CSName: UnsafeUnpin,
<ET as EngineTypes>::MuDim: UnsafeUnpin,
<<ET as EngineTypes>::File as File>::SourceRefID: UnsafeUnpin,
impl<ET> UnwindSafe for StateChange<ET>where
<ET as EngineTypes>::Char: UnwindSafe,
<ET as EngineTypes>::Int: UnwindSafe,
<ET as EngineTypes>::Font: UnwindSafe,
<ET as EngineTypes>::Dim: UnwindSafe,
<ET as EngineTypes>::CSName: UnwindSafe,
<ET as EngineTypes>::MuDim: UnwindSafe,
<<ET as EngineTypes>::File as File>::SourceRefID: UnwindSafe,
<ET as EngineTypes>::Token: UnwindSafe,
<ET as EngineTypes>::CustomNode: UnwindSafe,
ET: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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