pub enum STeXToken<Pos: SourcePos> {
Show 35 variants
ImportModule {
archive_range: Option<SourceRange<Pos>>,
path_range: SourceRange<Pos>,
module: ModuleReference,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
},
UseModule {
archive_range: Option<SourceRange<Pos>>,
path_range: SourceRange<Pos>,
module: ModuleReference,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
},
UseStructure {
structure: SymbolReference<Pos>,
structure_range: SourceRange<Pos>,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
},
SetMetatheory {
archive_range: Option<SourceRange<Pos>>,
path_range: SourceRange<Pos>,
module: ModuleReference,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
},
Inputref {
archive: Option<(ArchiveId, SourceRange<Pos>)>,
filepath: (Arc<str>, SourceRange<Pos>),
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
},
IncludeProblem {
filepath: (Arc<str>, SourceRange<Pos>),
archive: Option<(ArchiveId, SourceRange<Pos>)>,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
args: Vec<IncludeProblemArg<Pos>>,
},
MHGraphics {
filepath: (Arc<str>, SourceRange<Pos>),
archive: Option<(ArchiveId, SourceRange<Pos>)>,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
args: Vec<MHGraphicsArg<Pos>>,
},
MHInput {
archive: Option<(ArchiveId, SourceRange<Pos>)>,
filepath: (Arc<str>, SourceRange<Pos>),
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
},
Module {
uri: ModuleUri,
rules: ModuleRules<Pos>,
name_range: SourceRange<Pos>,
opts: Vec<SModuleArg<Pos, Self>>,
sig: Option<Language>,
meta_theory: Option<ModuleReference>,
full_range: SourceRange<Pos>,
children: Vec<STeXToken<Pos>>,
smodule_range: SourceRange<Pos>,
},
MathStructure {
uri: SymbolReference<Pos>,
extends: Vec<(SymbolReference<Pos>, SourceRange<Pos>)>,
name_range: SourceRange<Pos>,
opts: Vec<MathStructureArg<Pos, Self>>,
full_range: SourceRange<Pos>,
children: Vec<STeXToken<Pos>>,
mathstructure_range: SourceRange<Pos>,
},
ConservativeExt {
uri: SymbolReference<Pos>,
ext_range: SourceRange<Pos>,
full_range: SourceRange<Pos>,
children: Vec<STeXToken<Pos>>,
extstructure_range: SourceRange<Pos>,
},
MorphismEnv {
full_range: SourceRange<Pos>,
env_range: SourceRange<Pos>,
name_range: SourceRange<Pos>,
uri: SymbolUri,
star: bool,
domain: ModuleOrStruct<Pos>,
domain_range: SourceRange<Pos>,
kind: MorphismKind,
children: Vec<STeXToken<Pos>>,
},
InlineMorphism {
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
name_range: SourceRange<Pos>,
uri: SymbolUri,
star: bool,
domain: ModuleOrStruct<Pos>,
domain_range: SourceRange<Pos>,
kind: MorphismKind,
assignments: Vec<InlineMorphAssign<Pos, Self>>,
},
Paragraph {
kind: ParagraphKind,
full_range: SourceRange<Pos>,
name_range: SourceRange<Pos>,
symbol: Option<SymbolReference<Pos>>,
parsed_args: Vec<ParagraphArg<Pos, STeXToken<Pos>>>,
children: Vec<STeXToken<Pos>>,
},
Problem {
sub: bool,
full_range: SourceRange<Pos>,
name_range: SourceRange<Pos>,
parsed_args: Vec<ProblemArg<Pos, STeXToken<Pos>>>,
children: Vec<STeXToken<Pos>>,
},
InlineParagraph {
kind: ParagraphKind,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
symbol: Option<SymbolReference<Pos>>,
parsed_args: Vec<ParagraphArg<Pos, STeXToken<Pos>>>,
children: Vec<STeXToken<Pos>>,
children_range: SourceRange<Pos>,
},
Symdecl {
uri: SymbolReference<Pos>,
main_name_range: SourceRange<Pos>,
full_range: SourceRange<Pos>,
parsed_args: Vec<SymdeclArg<Pos, Self>>,
token_range: SourceRange<Pos>,
},
TextSymdecl {
uri: SymbolReference<Pos>,
main_name_range: SourceRange<Pos>,
full_range: SourceRange<Pos>,
parsed_args: Vec<TextSymdeclArg<Pos, Self>>,
token_range: SourceRange<Pos>,
},
Notation {
uri: SmallVec<SymbolReference<Pos>, 1>,
token_range: SourceRange<Pos>,
name_range: SourceRange<Pos>,
notation_args: Vec<NotationArg<Pos, Self>>,
full_range: SourceRange<Pos>,
},
RenameDecl {
uri: SymbolReference<Pos>,
token_range: SourceRange<Pos>,
orig_range: SourceRange<Pos>,
name_range: Option<SourceRange<Pos>>,
macroname_range: SourceRange<Pos>,
full_range: SourceRange<Pos>,
},
Assign {
uri: SymbolReference<Pos>,
token_range: SourceRange<Pos>,
orig_range: SourceRange<Pos>,
full_range: SourceRange<Pos>,
},
Symdef {
uri: SymbolReference<Pos>,
main_name_range: SourceRange<Pos>,
full_range: SourceRange<Pos>,
parsed_args: Vec<SymdefArg<Pos, Self>>,
token_range: SourceRange<Pos>,
},
Vardef {
name: UriName,
main_name_range: SourceRange<Pos>,
full_range: SourceRange<Pos>,
parsed_args: Vec<VardefArg<Pos, Self>>,
token_range: SourceRange<Pos>,
},
Varseq {
name: UriName,
main_name_range: SourceRange<Pos>,
full_range: SourceRange<Pos>,
parsed_args: Vec<VardefArg<Pos, Self>>,
token_range: SourceRange<Pos>,
},
SemanticMacro {
uri: SymbolReference<Pos>,
argnum: u8,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
},
VariableMacro {
name: UriName,
orig: SourceRange<Pos>,
argnum: u8,
sequence: bool,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
},
SymName {
uri: SmallVec<SymbolReference<Pos>, 1>,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
name_range: SourceRange<Pos>,
mode: SymnameMode<Pos>,
},
Symuse {
uri: SmallVec<SymbolReference<Pos>, 1>,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
name_range: SourceRange<Pos>,
},
Definiens {
uri: SmallVec<SymbolReference<Pos>, 1>,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
name_range: Option<SourceRange<Pos>>,
},
Defnotation {
full_range: SourceRange<Pos>,
},
Svar {
name: UriName,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
name_range: Option<SourceRange<Pos>>,
arg_range: SourceRange<Pos>,
},
Symref {
uri: SmallVec<SymbolReference<Pos>, 1>,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
name_range: SourceRange<Pos>,
text: (SourceRange<Pos>, Vec<STeXToken<Pos>>),
},
Precondition {
uri: SmallVec<SymbolReference<Pos>, 1>,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
dim_range: SourceRange<Pos>,
symbol_range: SourceRange<Pos>,
dim: CognitiveDimension,
},
Objective {
uri: SmallVec<SymbolReference<Pos>, 1>,
full_range: SourceRange<Pos>,
token_range: SourceRange<Pos>,
dim_range: SourceRange<Pos>,
symbol_range: SourceRange<Pos>,
dim: CognitiveDimension,
},
Vec(Vec<STeXToken<Pos>>),
}Variantsยง
ImportModule
Fields
ยง
archive_range: Option<SourceRange<Pos>>ยง
path_range: SourceRange<Pos>ยง
module: ModuleReferenceยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>UseModule
Fields
ยง
archive_range: Option<SourceRange<Pos>>ยง
path_range: SourceRange<Pos>ยง
module: ModuleReferenceยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>UseStructure
Fields
ยง
structure: SymbolReference<Pos>ยง
structure_range: SourceRange<Pos>ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>SetMetatheory
Fields
ยง
archive_range: Option<SourceRange<Pos>>ยง
path_range: SourceRange<Pos>ยง
module: ModuleReferenceยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>Inputref
Fields
ยง
archive: Option<(ArchiveId, SourceRange<Pos>)>ยง
filepath: (Arc<str>, SourceRange<Pos>)ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>IncludeProblem
Fields
ยง
filepath: (Arc<str>, SourceRange<Pos>)ยง
archive: Option<(ArchiveId, SourceRange<Pos>)>ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>ยง
args: Vec<IncludeProblemArg<Pos>>MHGraphics
Fields
ยง
filepath: (Arc<str>, SourceRange<Pos>)ยง
archive: Option<(ArchiveId, SourceRange<Pos>)>ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>ยง
args: Vec<MHGraphicsArg<Pos>>MHInput
Fields
ยง
archive: Option<(ArchiveId, SourceRange<Pos>)>ยง
filepath: (Arc<str>, SourceRange<Pos>)ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>Module
Fields
ยง
uri: ModuleUriยง
rules: ModuleRules<Pos>ยง
name_range: SourceRange<Pos>ยง
opts: Vec<SModuleArg<Pos, Self>>ยง
meta_theory: Option<ModuleReference>ยง
full_range: SourceRange<Pos>ยง
smodule_range: SourceRange<Pos>MathStructure
Fields
ยง
uri: SymbolReference<Pos>ยง
extends: Vec<(SymbolReference<Pos>, SourceRange<Pos>)>ยง
name_range: SourceRange<Pos>ยง
opts: Vec<MathStructureArg<Pos, Self>>ยง
full_range: SourceRange<Pos>ยง
mathstructure_range: SourceRange<Pos>ConservativeExt
Fields
ยง
uri: SymbolReference<Pos>ยง
ext_range: SourceRange<Pos>ยง
full_range: SourceRange<Pos>ยง
extstructure_range: SourceRange<Pos>MorphismEnv
Fields
ยง
full_range: SourceRange<Pos>ยง
env_range: SourceRange<Pos>ยง
name_range: SourceRange<Pos>ยง
uri: SymbolUriยง
domain: ModuleOrStruct<Pos>ยง
domain_range: SourceRange<Pos>ยง
kind: MorphismKindInlineMorphism
Fields
ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>ยง
name_range: SourceRange<Pos>ยง
uri: SymbolUriยง
domain: ModuleOrStruct<Pos>ยง
domain_range: SourceRange<Pos>ยง
kind: MorphismKindยง
assignments: Vec<InlineMorphAssign<Pos, Self>>Paragraph
Fields
ยง
kind: ParagraphKindยง
full_range: SourceRange<Pos>ยง
name_range: SourceRange<Pos>ยง
symbol: Option<SymbolReference<Pos>>ยง
parsed_args: Vec<ParagraphArg<Pos, STeXToken<Pos>>>Problem
Fields
ยง
full_range: SourceRange<Pos>ยง
name_range: SourceRange<Pos>ยง
parsed_args: Vec<ProblemArg<Pos, STeXToken<Pos>>>InlineParagraph
Fields
ยง
kind: ParagraphKindยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>ยง
symbol: Option<SymbolReference<Pos>>ยง
parsed_args: Vec<ParagraphArg<Pos, STeXToken<Pos>>>ยง
children_range: SourceRange<Pos>Symdecl
Fields
ยง
uri: SymbolReference<Pos>ยง
main_name_range: SourceRange<Pos>ยง
full_range: SourceRange<Pos>ยง
parsed_args: Vec<SymdeclArg<Pos, Self>>ยง
token_range: SourceRange<Pos>TextSymdecl
Fields
ยง
uri: SymbolReference<Pos>ยง
main_name_range: SourceRange<Pos>ยง
full_range: SourceRange<Pos>ยง
parsed_args: Vec<TextSymdeclArg<Pos, Self>>ยง
token_range: SourceRange<Pos>Notation
Fields
ยง
uri: SmallVec<SymbolReference<Pos>, 1>ยง
token_range: SourceRange<Pos>ยง
name_range: SourceRange<Pos>ยง
notation_args: Vec<NotationArg<Pos, Self>>ยง
full_range: SourceRange<Pos>RenameDecl
Fields
ยง
uri: SymbolReference<Pos>ยง
token_range: SourceRange<Pos>ยง
orig_range: SourceRange<Pos>ยง
name_range: Option<SourceRange<Pos>>ยง
macroname_range: SourceRange<Pos>ยง
full_range: SourceRange<Pos>Assign
Fields
ยง
uri: SymbolReference<Pos>ยง
token_range: SourceRange<Pos>ยง
orig_range: SourceRange<Pos>ยง
full_range: SourceRange<Pos>Symdef
Fields
ยง
uri: SymbolReference<Pos>ยง
main_name_range: SourceRange<Pos>ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>Vardef
Fields
ยง
name: UriNameยง
main_name_range: SourceRange<Pos>ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>Varseq
Fields
ยง
name: UriNameยง
main_name_range: SourceRange<Pos>ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>SemanticMacro
VariableMacro
Fields
ยง
name: UriNameยง
orig: SourceRange<Pos>ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>SymName
Fields
ยง
uri: SmallVec<SymbolReference<Pos>, 1>ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>ยง
name_range: SourceRange<Pos>ยง
mode: SymnameMode<Pos>Symuse
Fields
ยง
uri: SmallVec<SymbolReference<Pos>, 1>ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>ยง
name_range: SourceRange<Pos>Definiens
Fields
ยง
uri: SmallVec<SymbolReference<Pos>, 1>ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>ยง
name_range: Option<SourceRange<Pos>>Defnotation
Fields
ยง
full_range: SourceRange<Pos>Svar
Fields
ยง
name: UriNameยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>ยง
name_range: Option<SourceRange<Pos>>ยง
arg_range: SourceRange<Pos>Symref
Fields
ยง
uri: SmallVec<SymbolReference<Pos>, 1>ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>ยง
name_range: SourceRange<Pos>ยง
text: (SourceRange<Pos>, Vec<STeXToken<Pos>>)Precondition
Fields
ยง
uri: SmallVec<SymbolReference<Pos>, 1>ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>ยง
dim_range: SourceRange<Pos>ยง
symbol_range: SourceRange<Pos>ยง
dim: CognitiveDimensionObjective
Fields
ยง
uri: SmallVec<SymbolReference<Pos>, 1>ยง
full_range: SourceRange<Pos>ยง
token_range: SourceRange<Pos>ยง
dim_range: SourceRange<Pos>ยง
symbol_range: SourceRange<Pos>ยง
dim: CognitiveDimensionVec(Vec<STeXToken<Pos>>)
Trait Implementationsยง
Sourceยงimpl<'a, P: SourcePos> FromLaTeXToken<'a, P, &'a str> for STeXToken<P>
impl<'a, P: SourcePos> FromLaTeXToken<'a, P, &'a str> for STeXToken<P>
fn from_comment(_: SourceRange<P>) -> Option<Self>
fn from_group(_: SourceRange<P>, v: Vec<Self>) -> Option<Self>
fn from_math(_: bool, _: SourceRange<P>, v: Vec<Self>) -> Option<Self>
fn from_control_sequence(_: P, _: &'a str) -> Option<Self>
fn from_text(_: SourceRange<P>, _: &'a str) -> Option<Self>
fn from_macro_application(_: Macro<'a, P, &'a str>) -> Option<Self>
fn from_environment(e: Environment<'a, P, &'a str, Self>) -> Option<Self>
Sourceยงimpl<'a, MS: STeXModuleStore, Pos: SourcePos + 'a, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel)> GroupState<'a, ParseStr<'a, Pos>, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for STeXGroup<'a, MS, Pos, Err>
impl<'a, MS: STeXModuleStore, Pos: SourcePos + 'a, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel)> GroupState<'a, ParseStr<'a, Pos>, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for STeXGroup<'a, MS, Pos, Err>
fn new(parent: Option<&mut Self>) -> Self
fn inner( &self, ) -> &Group<'a, ParseStr<'a, Pos>, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>
fn inner_mut( &mut self, ) -> &mut Group<'a, ParseStr<'a, Pos>, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>
fn close( self, parser: &mut LaTeXParser<'a, ParseStr<'a, Pos>, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>, )
fn add_macro_rule( &mut self, name: Cow<'a, str>, old: Option<AnyMacro<'a, ParseStr<'a, Pos>, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>>, )
fn add_environment_rule( &mut self, name: Cow<'a, str>, old: Option<AnyEnv<'a, ParseStr<'a, Pos>, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>>, )
fn letter_change(&mut self, old: &str)
Sourceยงimpl<'a, Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, LSPLineCol, STeXToken<LSPLineCol>, Err, STeXParseState<'a, LSPLineCol, MS>> for ParagraphArg<LSPLineCol, STeXToken<LSPLineCol>>
impl<'a, Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, LSPLineCol, STeXToken<LSPLineCol>, Err, STeXParseState<'a, LSPLineCol, MS>> for ParagraphArg<LSPLineCol, STeXToken<LSPLineCol>>
fn next_val( parser: &mut KeyValParser<'a, '_, LSPLineCol, STeXToken<LSPLineCol>, Err, STeXParseState<'a, LSPLineCol, MS>>, key: &str, ) -> Option<Self>
Sourceยงimpl<'a, Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, LSPLineCol, STeXToken<LSPLineCol>, Err, STeXParseState<'a, LSPLineCol, MS>> for ProblemArg<LSPLineCol, STeXToken<LSPLineCol>>
impl<'a, Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, LSPLineCol, STeXToken<LSPLineCol>, Err, STeXParseState<'a, LSPLineCol, MS>> for ProblemArg<LSPLineCol, STeXToken<LSPLineCol>>
fn next_val( parser: &mut KeyValParser<'a, '_, LSPLineCol, STeXToken<LSPLineCol>, Err, STeXParseState<'a, LSPLineCol, MS>>, key: &str, ) -> Option<Self>
Sourceยงimpl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for IncludeProblemArg<Pos>
impl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for IncludeProblemArg<Pos>
fn next_val( parser: &mut KeyValParser<'a, '_, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>, key: &str, ) -> Option<Self>
Sourceยงimpl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for MHGraphicsArg<Pos>
impl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for MHGraphicsArg<Pos>
fn next_val( parser: &mut KeyValParser<'a, '_, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>, key: &str, ) -> Option<Self>
Sourceยงimpl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for MathStructureArg<Pos, STeXToken<Pos>>
impl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for MathStructureArg<Pos, STeXToken<Pos>>
fn next_val( parser: &mut KeyValParser<'a, '_, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>, key: &str, ) -> Option<Self>
Sourceยงimpl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for NotationArg<Pos, STeXToken<Pos>>
impl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for NotationArg<Pos, STeXToken<Pos>>
fn next_val( parser: &mut KeyValParser<'a, '_, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>, key: &str, ) -> Option<Self>
Sourceยงimpl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for SModuleArg<Pos, STeXToken<Pos>>
impl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for SModuleArg<Pos, STeXToken<Pos>>
fn next_val( parser: &mut KeyValParser<'a, '_, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>, key: &str, ) -> Option<Self>
Sourceยงimpl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for SymdeclArg<Pos, STeXToken<Pos>>
impl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for SymdeclArg<Pos, STeXToken<Pos>>
fn next_val( parser: &mut KeyValParser<'a, '_, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>, key: &str, ) -> Option<Self>
Sourceยงimpl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for SymdefArg<Pos, STeXToken<Pos>>
impl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for SymdefArg<Pos, STeXToken<Pos>>
fn next_val( parser: &mut KeyValParser<'a, '_, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>, key: &str, ) -> Option<Self>
Sourceยงimpl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for TextSymdeclArg<Pos, STeXToken<Pos>>
impl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for TextSymdeclArg<Pos, STeXToken<Pos>>
fn next_val( parser: &mut KeyValParser<'a, '_, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>, key: &str, ) -> Option<Self>
Sourceยงimpl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for VardefArg<Pos, STeXToken<Pos>>
impl<'a, Pos: SourcePos, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel), MS: STeXModuleStore> KeyValKind<'a, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>> for VardefArg<Pos, STeXToken<Pos>>
fn next_val( parser: &mut KeyValParser<'a, '_, Pos, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>, key: &str, ) -> Option<Self>
Sourceยงimpl<'a, MS: STeXModuleStore, Pos: SourcePos + 'a, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel)> ParserState<'a, ParseStr<'a, Pos>, STeXToken<Pos>, Err> for STeXParseState<'a, Pos, MS>
impl<'a, MS: STeXModuleStore, Pos: SourcePos + 'a, Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel)> ParserState<'a, ParseStr<'a, Pos>, STeXToken<Pos>, Err> for STeXParseState<'a, Pos, MS>
Auto Trait Implementationsยง
impl<Pos> Freeze for STeXToken<Pos>where
Pos: Freeze,
impl<Pos> RefUnwindSafe for STeXToken<Pos>where
Pos: RefUnwindSafe,
impl<Pos> Send for STeXToken<Pos>
impl<Pos> Sync for STeXToken<Pos>
impl<Pos> Unpin for STeXToken<Pos>where
Pos: Unpin,
impl<Pos> UnsafeUnpin for STeXToken<Pos>where
Pos: UnsafeUnpin,
impl<Pos> UnwindSafe for STeXToken<Pos>where
Pos: UnwindSafe + 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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
ยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.ยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.ยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Anyโs vtable from &Traitโs.ยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Anyโs vtable from &mut Traitโs.ยงimpl<T> DowncastSend for T
impl<T> DowncastSend for T
ยงimpl<T> DowncastSync for T
impl<T> DowncastSync for T
ยงimpl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
ยง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 moreSourceยงimpl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
ยงimpl<E, T, Request> IntoReq<DeleteUrl, Request, E> for T
impl<E, T, Request> IntoReq<DeleteUrl, Request, E> for T
ยงimpl<E, T, Request> IntoReq<GetUrl, Request, E> for T
impl<E, T, Request> IntoReq<GetUrl, Request, E> for T
ยงimpl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Request> IntoReq<PatchUrl, Request, E> for T
impl<E, T, Request> IntoReq<PatchUrl, Request, E> for T
ยงimpl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Request> IntoReq<PostUrl, Request, E> for T
impl<E, T, Request> IntoReq<PostUrl, Request, E> for T
ยงimpl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Request> IntoReq<PutUrl, Request, E> for T
impl<E, T, Request> IntoReq<PutUrl, Request, E> for T
ยงimpl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
ยงimpl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
ยงimpl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
ยงimpl<D> OwoColorize for D
impl<D> OwoColorize for D
ยงfn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Set the foreground color generically Read more
ยงfn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Set the background color generically. Read more
ยงfn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Change the background color to magenta
ยงfn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Change the foreground color to the terminal default
ยงfn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Change the background color to the terminal default
ยงfn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Change the foreground color to bright black
ยงfn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Change the background color to bright black
ยงfn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Change the foreground color to bright red
ยงfn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Change the background color to bright red
ยงfn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Change the foreground color to bright green
ยงfn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Change the background color to bright green
ยงfn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Change the foreground color to bright yellow
ยงfn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Change the background color to bright yellow
ยงfn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Change the foreground color to bright blue
ยงfn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Change the background color to bright blue
ยงfn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright magenta
ยงfn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright magenta
ยงfn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright purple
ยงfn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright purple
ยงfn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Change the foreground color to bright cyan
ยงfn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Change the background color to bright cyan
ยงfn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Change the foreground color to bright white
ยงfn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Change the background color to bright white
ยงfn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Make the text blink (but fast!)
Hide the text
ยงfn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Cross out the text
ยงfn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
Set the foreground color at runtime. Only use if you do not know which color will be used at
compile-time. If the color is constant, use either [
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read moreยงfn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
Set the background color at runtime. Only use if you do not know what color to use at
compile-time. If the color is constant, use either [
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read moreยงfn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the foreground color to a specific RGB value.
ยงfn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the background color to a specific RGB value.
ยงfn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Sets the foreground color to an RGB value.
ยงfn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Sets the background color to an RGB value.
ยงfn if_supports_color<'a, Out, ApplyFn>(
&'a self,
stream: impl Into<Stream>,
apply: ApplyFn,
) -> SupportsColorsDisplay<'a, Self, Out, ApplyFn>where
ApplyFn: Fn(&'a Self) -> Out,
fn if_supports_color<'a, Out, ApplyFn>(
&'a self,
stream: impl Into<Stream>,
apply: ApplyFn,
) -> SupportsColorsDisplay<'a, Self, Out, ApplyFn>where
ApplyFn: Fn(&'a Self) -> Out,
Available on crate feature
supports-colors only.Apply a given transformation function to all formatters if the given stream
supports at least basic ANSI colors, allowing you to conditionally apply
given styles/colors. Read more
ยงimpl<T> Pointable for T
impl<T> Pointable for T
ยงimpl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
ยงimpl<T> SerializableKey for T
impl<T> SerializableKey for T
ยงimpl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
ยงfn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
ยงfn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.