Struct texlang_stdlib::StdLibState
source · pub struct StdLibState {Show 15 fields
pub alloc: Component,
pub codes_cat_code: Component<CatCode>,
pub codes_math_code: Component<MathCode>,
pub conditional: Component,
pub end_line_char: Component,
pub error_mode: Component,
pub input: Component<16>,
pub job: Component,
pub prefix: Component,
pub registers_i32: Component<i32, 32768>,
pub registers_token_list: Component<Vec<Token>, 256>,
pub repl: Component,
pub script: Component,
pub time: Component,
pub tracing_macros: Component,
}
Expand description
A state struct that is compatible with every primitive in the Texlang standard library.
Fields§
§alloc: Component
§codes_cat_code: Component<CatCode>
§codes_math_code: Component<MathCode>
§conditional: Component
§end_line_char: Component
§error_mode: Component
§input: Component<16>
§job: Component
§prefix: Component
§registers_i32: Component<i32, 32768>
§registers_token_list: Component<Vec<Token>, 256>
§repl: Component
§script: Component
§time: Component
§tracing_macros: Component
Trait Implementations§
source§impl Default for StdLibState
impl Default for StdLibState
source§fn default() -> StdLibState
fn default() -> StdLibState
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StdLibState
impl<'de> Deserialize<'de> for StdLibState
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 HasComponent<Component<16>> for StdLibState
impl HasComponent<Component<16>> for StdLibState
source§impl HasComponent<Component<CatCode>> for StdLibState
impl HasComponent<Component<CatCode>> for StdLibState
source§impl HasComponent<Component<MathCode>> for StdLibState
impl HasComponent<Component<MathCode>> for StdLibState
source§impl HasComponent<Component<Vec<Token, Global>, 256>> for StdLibState
impl HasComponent<Component<Vec<Token, Global>, 256>> for StdLibState
source§impl HasComponent<Component<i32, 32768>> for StdLibState
impl HasComponent<Component<i32, 32768>> for StdLibState
source§impl HasComponent<Component> for StdLibState
impl HasComponent<Component> for StdLibState
source§impl HasComponent<Component> for StdLibState
impl HasComponent<Component> for StdLibState
source§impl HasComponent<Component> for StdLibState
impl HasComponent<Component> for StdLibState
source§impl HasComponent<Component> for StdLibState
impl HasComponent<Component> for StdLibState
source§impl HasComponent<Component> for StdLibState
impl HasComponent<Component> for StdLibState
source§impl HasComponent<Component> for StdLibState
impl HasComponent<Component> for StdLibState
source§impl HasComponent<Component> for StdLibState
impl HasComponent<Component> for StdLibState
source§impl HasComponent<Component> for StdLibState
impl HasComponent<Component> for StdLibState
source§impl HasComponent<Component> for StdLibState
impl HasComponent<Component> for StdLibState
source§impl HasComponent<Component> for StdLibState
impl HasComponent<Component> for StdLibState
source§impl HasFileSystem for StdLibState
impl HasFileSystem for StdLibState
fn file_system(&self) -> Rc<RefCell<dyn FileSystem>, Global>
source§impl HasLogging for StdLibState
impl HasLogging for StdLibState
source§impl HasTerminalIn for StdLibState
impl HasTerminalIn for StdLibState
fn terminal_in(&self) -> Rc<RefCell<dyn TerminalIn>>
source§impl Serialize for StdLibState
impl Serialize for StdLibState
source§impl TexlangState for StdLibState
impl TexlangState for StdLibState
source§fn end_line_char(&self) -> Option<char>
fn end_line_char(&self) -> Option<char>
source§fn post_macro_expansion_hook(
token: Token,
input: &ExpansionInput<Self>,
tex_macro: &Macro,
arguments: &[&[Token]],
reversed_expansion: &[Token]
)
fn post_macro_expansion_hook( token: Token, input: &ExpansionInput<Self>, tex_macro: &Macro, arguments: &[&[Token]], reversed_expansion: &[Token] )
Hook that is invoked after a TeX macro is expanded. Read more
source§fn expansion_override_hook(
token: Token,
input: &mut ExpansionInput<Self>,
tag: Option<Tag>
) -> Result<Option<Token>>
fn expansion_override_hook( token: Token, input: &mut ExpansionInput<Self>, tag: Option<Tag> ) -> Result<Option<Token>>
Hook that potentially overrides the expansion of a command. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for StdLibState
impl !Send for StdLibState
impl !Sync for StdLibState
impl Unpin for StdLibState
impl !UnwindSafe for StdLibState
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