pub struct STeXParseState<'a, Pos: SourcePos, MS: STeXModuleStore> {
pub(super) archive: Option<&'a ArchiveUri>,
pub(super) in_path: Option<Arc<Path>>,
pub(super) doc_uri: &'a DocumentUri,
pub(super) backend: &'a AnyBackend,
pub(super) language: Language,
pub(super) dependencies: Vec<Arc<Path>>,
pub(super) modules: SmallVec<(ModuleUri, ModuleRules<Pos>), 1>,
module_store: MS,
name_counter: IdCounter,
}Fieldsยง
ยงarchive: Option<&'a ArchiveUri>ยงin_path: Option<Arc<Path>>ยงdoc_uri: &'a DocumentUriยงbackend: &'a AnyBackendยงlanguage: Languageยงdependencies: Vec<Arc<Path>>ยงmodules: SmallVec<(ModuleUri, ModuleRules<Pos>), 1>ยงmodule_store: MSยงname_counter: IdCounterImplementationsยง
Sourceยงimpl<'a, MS: STeXModuleStore> STeXParseState<'a, LSPLineCol, MS>
impl<'a, MS: STeXModuleStore> STeXParseState<'a, LSPLineCol, MS>
fn load_module( &mut self, module: &ModuleReference, ) -> Result<ModuleRules<LSPLineCol>, GetModuleError>
fn load_rules<'b, Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( mod_ref: ModuleReference, irules: ModuleRules<LSPLineCol>, prev: &[STeXGroup<'a, MS, LSPLineCol, Err>], current: &mut HMap<Cow<'a, str>, AnyMacro<'a, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>>, changes: &mut HMap<Cow<'a, str>, Option<AnyMacro<'a, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>>>, semantic_rules: &mut Vec<SemanticRule<LSPLineCol>>, f: &mut impl FnMut(&ModuleReference) -> Option<ModuleRules<LSPLineCol>>, cycles_count: u16, ) -> Result<(), ()>
fn has_module<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( prev: &[STeXGroup<'a, MS, LSPLineCol, Err>], current: &Vec<SemanticRule<LSPLineCol>>, mod_ref: &ModuleReference, ) -> bool
Sourcepub fn add_use<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>(
&mut self,
module: &ModuleReference,
groups: Groups<'a, '_, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>,
range: SourceRange<LSPLineCol>,
)
pub fn add_use<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( &mut self, module: &ModuleReference, groups: Groups<'a, '_, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>, range: SourceRange<LSPLineCol>, )
ยงPanics
fn has_structure<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( prev: &[STeXGroup<'a, MS, LSPLineCol, Err>], current: &Vec<SemanticRule<LSPLineCol>>, sym_ref: &SymbolReference<LSPLineCol>, ) -> bool
fn load_structure<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( symbol: &SymbolReference<LSPLineCol>, prev: &[STeXGroup<'a, MS, LSPLineCol, Err>], semantic_rules: &Vec<SemanticRule<LSPLineCol>>, ) -> Option<ModuleRules<LSPLineCol>>
fn load_structure_rules<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( symbol: SymbolReference<LSPLineCol>, irules: ModuleRules<LSPLineCol>, prev: &[STeXGroup<'a, MS, LSPLineCol, Err>], current: &mut HMap<Cow<'a, str>, AnyMacro<'a, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>>, changes: &mut HMap<Cow<'a, str>, Option<AnyMacro<'a, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>>>, semantic_rules: &mut Vec<SemanticRule<LSPLineCol>>, )
pub fn import_structure<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( &mut self, symbol: &SymbolReference<LSPLineCol>, srules: &ModuleRules<LSPLineCol>, groups: &mut Groups<'a, '_, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>, range: SourceRange<LSPLineCol>, )
pub fn use_structure<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( &mut self, symbol: &SymbolReference<LSPLineCol>, srules: &ModuleRules<LSPLineCol>, groups: &mut Groups<'a, '_, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>, _range: SourceRange<LSPLineCol>, )
pub fn add_import<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( &mut self, module: &ModuleReference, groups: Groups<'a, '_, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>, range: SourceRange<LSPLineCol>, )
fn get_symbol_macro_or_name<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( &self, groups: &Groups<'a, '_, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>, namestr: &str, ) -> Option<SmallVec<SymbolReference<LSPLineCol>, 1>>
fn get_structure_macro_or_name<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( &self, groups: &Groups<'a, '_, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>, namestr: &str, ) -> Option<(SymbolReference<LSPLineCol>, ModuleRules<LSPLineCol>)>
fn compare( symbol: &str, module: &str, path: Option<&str>, uri: &SymbolUri, ) -> bool
fn get_symbol_complex<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( &self, groups: &Groups<'a, '_, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>, symbol: &str, module: &str, path: Option<&str>, ) -> Option<SmallVec<SymbolReference<LSPLineCol>, 1>>
fn get_structure_uri<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( &self, groups: &Groups<'a, '_, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>, uri: &SymbolReference<LSPLineCol>, ) -> Option<ModuleRules<LSPLineCol>>
fn get_structure_complex<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( &self, groups: &Groups<'a, '_, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>, namestr: &str, module: &str, path: Option<&str>, ) -> Option<(SymbolReference<LSPLineCol>, ModuleRules<LSPLineCol>)>
pub fn get_symbol<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( &self, start: LSPLineCol, groups: &mut Groups<'a, '_, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>, namestr: &str, ) -> Option<SmallVec<SymbolReference<LSPLineCol>, 1>>
pub fn get_structure<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( &self, groups: &Groups<'a, '_, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>, namestr: &str, ) -> Option<(SymbolReference<LSPLineCol>, ModuleRules<LSPLineCol>)>
pub(super) fn resolve_module_or_struct<Err: FnMut(String, SourceRange<LSPLineCol>, DiagnosticLevel)>( &mut self, groups: &Groups<'a, '_, ParseStr<'a, LSPLineCol>, STeXToken<LSPLineCol>, Err, Self>, module_or_struct: &str, archive: Option<ArchiveId>, ) -> Option<(ModuleOrStruct<LSPLineCol>, Vec<ModuleRules<LSPLineCol>>)>
Sourceยงimpl<'a, Pos: SourcePos, MS: STeXModuleStore> STeXParseState<'a, Pos, MS>
impl<'a, Pos: SourcePos, MS: STeXModuleStore> STeXParseState<'a, Pos, MS>
pub fn new( archive: Option<&'a ArchiveUri>, in_path: Option<&'a Path>, uri: &'a DocumentUri, backend: &'a AnyBackend, on_module: MS, ) -> Self
pub fn set_structure<Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel)>( &mut self, groups: &mut Groups<'a, '_, ParseStr<'a, Pos>, STeXToken<Pos>, Err, Self>, rules: ModuleRules<Pos>, range: SourceRange<Pos>, )
pub fn add_structure<Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel)>( &mut self, groups: &mut Groups<'a, '_, ParseStr<'a, Pos>, STeXToken<Pos>, Err, Self>, name: UriName, macroname: Option<Arc<str>>, range: SourceRange<Pos>, ) -> Option<SymbolReference<Pos>>
fn new_id(&mut self, prefix: Cow<'static, str>) -> Box<str>
pub fn add_conservative_ext<Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel)>( &mut self, groups: &mut Groups<'a, '_, ParseStr<'a, Pos>, STeXToken<Pos>, Err, Self>, orig: &SymbolReference<Pos>, range: SourceRange<Pos>, ) -> Option<ModuleUri>
pub fn add_symbol<Err: FnMut(String, SourceRange<Pos>, DiagnosticLevel)>( &mut self, groups: &mut Groups<'a, '_, ParseStr<'a, Pos>, STeXToken<Pos>, Err, Self>, name: UriName, macroname: Option<Arc<str>>, range: SourceRange<Pos>, has_tp: bool, has_df: bool, argnum: u8, ) -> Option<SymbolReference<Pos>>
pub(super) fn resolve_module( &self, module: &'a str, archive: Option<ArchiveId>, ) -> Option<ModuleReference>
fn find_module(&self, m: &str) -> Option<(&ModuleUri, &ModuleRules<Pos>)>
Trait Implementationsยง
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<'a, Pos, MS> Freeze for STeXParseState<'a, Pos, MS>where
MS: Freeze,
impl<'a, Pos, MS> !RefUnwindSafe for STeXParseState<'a, Pos, MS>
impl<'a, Pos, MS> Send for STeXParseState<'a, Pos, MS>
impl<'a, Pos, MS> Sync for STeXParseState<'a, Pos, MS>
impl<'a, Pos, MS> Unpin for STeXParseState<'a, Pos, MS>where
MS: Unpin,
impl<'a, Pos, MS> UnsafeUnpin for STeXParseState<'a, Pos, MS>where
MS: UnsafeUnpin,
impl<'a, Pos, MS> !UnwindSafe for STeXParseState<'a, Pos, MS>
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, 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, 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, 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, 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.