Enum STeXToken

Source
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: Name, main_name_range: SourceRange<Pos>, full_range: SourceRange<Pos>, parsed_args: Vec<VardefArg<Pos, Self>>, token_range: SourceRange<Pos>, }, Varseq { name: Name, 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: Name, 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: Name, 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>
§full_range: SourceRange<Pos>
§token_range: SourceRange<Pos>
§

UseModule

Fields

§archive_range: Option<SourceRange<Pos>>
§path_range: SourceRange<Pos>
§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>
§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>
§

MHGraphics

Fields

§filepath: (Arc<str>, SourceRange<Pos>)
§archive: Option<(ArchiveId, SourceRange<Pos>)>
§full_range: SourceRange<Pos>
§token_range: SourceRange<Pos>
§

MHInput

Fields

§archive: Option<(ArchiveId, SourceRange<Pos>)>
§filepath: (Arc<str>, SourceRange<Pos>)
§full_range: SourceRange<Pos>
§token_range: SourceRange<Pos>
§

Module

Fields

§rules: ModuleRules<Pos>
§name_range: SourceRange<Pos>
§opts: Vec<SModuleArg<Pos, Self>>
§full_range: SourceRange<Pos>
§children: Vec<STeXToken<Pos>>
§smodule_range: SourceRange<Pos>
§

MathStructure

Fields

§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

Fields

§ext_range: SourceRange<Pos>
§full_range: SourceRange<Pos>
§children: Vec<STeXToken<Pos>>
§extstructure_range: SourceRange<Pos>
§

MorphismEnv

Fields

§full_range: SourceRange<Pos>
§env_range: SourceRange<Pos>
§name_range: SourceRange<Pos>
§star: bool
§domain: ModuleOrStruct<Pos>
§domain_range: SourceRange<Pos>
§children: Vec<STeXToken<Pos>>
§

InlineMorphism

Fields

§full_range: SourceRange<Pos>
§token_range: SourceRange<Pos>
§name_range: SourceRange<Pos>
§star: bool
§domain: ModuleOrStruct<Pos>
§domain_range: SourceRange<Pos>
§assignments: Vec<InlineMorphAssign<Pos, Self>>
§

Paragraph

Fields

§full_range: SourceRange<Pos>
§name_range: SourceRange<Pos>
§parsed_args: Vec<ParagraphArg<Pos, STeXToken<Pos>>>
§children: Vec<STeXToken<Pos>>
§

Problem

Fields

§full_range: SourceRange<Pos>
§name_range: SourceRange<Pos>
§parsed_args: Vec<ProblemArg<Pos, STeXToken<Pos>>>
§children: Vec<STeXToken<Pos>>
§

InlineParagraph

Fields

§full_range: SourceRange<Pos>
§token_range: SourceRange<Pos>
§parsed_args: Vec<ParagraphArg<Pos, STeXToken<Pos>>>
§children: Vec<STeXToken<Pos>>
§children_range: SourceRange<Pos>
§

Symdecl

Fields

§main_name_range: SourceRange<Pos>
§full_range: SourceRange<Pos>
§parsed_args: Vec<SymdeclArg<Pos, Self>>
§token_range: SourceRange<Pos>
§

TextSymdecl

Fields

§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

§token_range: SourceRange<Pos>
§orig_range: SourceRange<Pos>
§name_range: Option<SourceRange<Pos>>
§macroname_range: SourceRange<Pos>
§full_range: SourceRange<Pos>
§

Assign

Fields

§token_range: SourceRange<Pos>
§orig_range: SourceRange<Pos>
§full_range: SourceRange<Pos>
§

Symdef

Fields

§main_name_range: SourceRange<Pos>
§full_range: SourceRange<Pos>
§parsed_args: Vec<SymdefArg<Pos, Self>>
§token_range: SourceRange<Pos>
§

Vardef

Fields

§name: Name
§main_name_range: SourceRange<Pos>
§full_range: SourceRange<Pos>
§parsed_args: Vec<VardefArg<Pos, Self>>
§token_range: SourceRange<Pos>
§

Varseq

Fields

§name: Name
§main_name_range: SourceRange<Pos>
§full_range: SourceRange<Pos>
§parsed_args: Vec<VardefArg<Pos, Self>>
§token_range: SourceRange<Pos>
§

SemanticMacro

Fields

§argnum: u8
§full_range: SourceRange<Pos>
§token_range: SourceRange<Pos>
§

VariableMacro

Fields

§name: Name
§orig: SourceRange<Pos>
§argnum: u8
§sequence: bool
§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: Name
§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>
§

Objective

Fields

§uri: SmallVec<SymbolReference<Pos>, 1>
§full_range: SourceRange<Pos>
§token_range: SourceRange<Pos>
§dim_range: SourceRange<Pos>
§symbol_range: SourceRange<Pos>
§

Vec(Vec<STeXToken<Pos>>)

Trait Implementations§

Source§

impl<Pos: Debug + SourcePos> Debug for STeXToken<Pos>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, P: SourcePos> FromLaTeXToken<'a, P, &'a str> for STeXToken<P>

Source§

fn from_comment(_: SourceRange<P>) -> Option<Self>

Source§

fn from_group(_: SourceRange<P>, v: Vec<Self>) -> Option<Self>

Source§

fn from_math(_: bool, _: SourceRange<P>, v: Vec<Self>) -> Option<Self>

Source§

fn from_control_sequence(_: P, _: &'a str) -> Option<Self>

Source§

fn from_text(_: SourceRange<P>, _: &'a str) -> Option<Self>

Source§

fn from_macro_application(_: Macro<'a, P, &'a str>) -> Option<Self>

Source§

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>

Source§

fn new(parent: Option<&mut Self>) -> Self

Source§

fn inner( &self, ) -> &Group<'a, ParseStr<'a, Pos>, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>

Source§

fn inner_mut( &mut self, ) -> &mut Group<'a, ParseStr<'a, Pos>, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>

Source§

fn close( self, parser: &mut LaTeXParser<'a, ParseStr<'a, Pos>, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>, )

Source§

fn add_macro_rule( &mut self, name: Cow<'a, str>, old: Option<AnyMacro<'a, ParseStr<'a, Pos>, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>>, )

Source§

fn add_environment_rule( &mut self, name: Cow<'a, str>, old: Option<AnyEnv<'a, ParseStr<'a, Pos>, STeXToken<Pos>, Err, STeXParseState<'a, Pos, MS>>>, )

Source§

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>>

Source§

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>>

Source§

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>

Source§

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>

Source§

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>>

Source§

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>>

Source§

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>>

Source§

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>>

Source§

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>>

Source§

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>>

Source§

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>>

Source§

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>

Source§

type Group = STeXGroup<'a, MS, Pos, Err>

Source§

type MacroArg = MacroArg<Pos>

Source§

impl<Pos> Serialize for STeXToken<Pos>
where Pos: Serialize + SourcePos,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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>
where Pos: Send + Sync,

§

impl<Pos> Sync for STeXToken<Pos>
where Pos: Sync + Send,

§

impl<Pos> Unpin for STeXToken<Pos>
where Pos: Unpin,

§

impl<Pos> UnwindSafe for STeXToken<Pos>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
§

impl<T> Downcast for T
where T: 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>

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)

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)

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
where T: Any + Send,

§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<ET, Err, A> IntoErr<ET, Err> for A
where ET: EngineTypes, Err: From<A>,

Source§

fn into_err( self, _aux: &EngineAux<ET>, _state: &<ET as EngineTypes>::State, ) -> Err

§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Pointee for T

§

type Metadata = ()

The type for metadata in pointers and references to Self.
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> CondSerialize for T
where T: Serialize,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> Fruit for T
where T: Send + Downcast,