Struct sway_core::decl_engine::DeclEngine
source · pub struct DeclEngine { /* private fields */ }
Expand description
Used inside of type inference to store declarations.
Implementations§
source§impl DeclEngine
impl DeclEngine
pub fn clear_module(&mut self, module_id: &ModuleId)
source§impl DeclEngine
impl DeclEngine
sourcepub fn get_function<I>(&self, index: &I) -> Arc<TyFunctionDecl>
pub fn get_function<I>(&self, index: &I) -> Arc<TyFunctionDecl>
Friendly helper method for calling the get
method from the
implementation of DeclEngineGet for DeclEngine
Calling [DeclEngine][get] directly is equivalent to this method, but this method adds additional syntax that some users may find helpful.
sourcepub fn get_trait<I>(&self, index: &I) -> Arc<TyTraitDecl>
pub fn get_trait<I>(&self, index: &I) -> Arc<TyTraitDecl>
Friendly helper method for calling the get
method from the
implementation of DeclEngineGet for DeclEngine
Calling [DeclEngine][get] directly is equivalent to this method, but this method adds additional syntax that some users may find helpful.
sourcepub fn get_traits_by_name(&self, trait_name: &Ident) -> Vec<TyTraitDecl>
pub fn get_traits_by_name(&self, trait_name: &Ident) -> Vec<TyTraitDecl>
Returns all the ty::TyTraitDecls whose name is the same as trait_name
.
The method does a linear search over all the declared traits and is meant to be used only for diagnostic purposes.
sourcepub fn get_trait_fn<I>(&self, index: &I) -> Arc<TyTraitFn>
pub fn get_trait_fn<I>(&self, index: &I) -> Arc<TyTraitFn>
Friendly helper method for calling the get
method from the
implementation of DeclEngineGet for DeclEngine
Calling [DeclEngine][get] directly is equivalent to this method, but this method adds additional syntax that some users may find helpful.
sourcepub fn get_impl_trait<I>(&self, index: &I) -> Arc<TyImplTrait>
pub fn get_impl_trait<I>(&self, index: &I) -> Arc<TyImplTrait>
Friendly helper method for calling the get
method from the
implementation of DeclEngineGet for DeclEngine
Calling [DeclEngine][get] directly is equivalent to this method, but this method adds additional syntax that some users may find helpful.
sourcepub fn get_struct<I>(&self, index: &I) -> Arc<TyStructDecl>
pub fn get_struct<I>(&self, index: &I) -> Arc<TyStructDecl>
Friendly helper method for calling the get
method from the
implementation of DeclEngineGet for DeclEngine
Calling [DeclEngine][get] directly is equivalent to this method, but this method adds additional syntax that some users may find helpful.
sourcepub fn get_storage<I>(&self, index: &I) -> Arc<TyStorageDecl>
pub fn get_storage<I>(&self, index: &I) -> Arc<TyStorageDecl>
Friendly helper method for calling the get
method from the
implementation of DeclEngineGet for DeclEngine.
Calling [DeclEngine][get] directly is equivalent to this method, but this method adds additional syntax that some users may find helpful.
sourcepub fn get_abi<I>(&self, index: &I) -> Arc<TyAbiDecl>
pub fn get_abi<I>(&self, index: &I) -> Arc<TyAbiDecl>
Friendly helper method for calling the get
method from the
implementation of DeclEngineGet for DeclEngine
Calling [DeclEngine][get] directly is equivalent to this method, but this method adds additional syntax that some users may find helpful.
sourcepub fn get_constant<I>(&self, index: &I) -> Arc<TyConstantDecl>
pub fn get_constant<I>(&self, index: &I) -> Arc<TyConstantDecl>
Friendly helper method for calling the get
method from the
implementation of DeclEngineGet for DeclEngine
Calling [DeclEngine][get] directly is equivalent to this method, but this method adds additional syntax that some users may find helpful.
sourcepub fn get_type<I>(&self, index: &I) -> Arc<TyTraitType>
pub fn get_type<I>(&self, index: &I) -> Arc<TyTraitType>
Friendly helper method for calling the get
method from the
implementation of DeclEngineGet for DeclEngine
Calling [DeclEngine][get] directly is equivalent to this method, but this method adds additional syntax that some users may find helpful.
sourcepub fn get_enum<I>(&self, index: &I) -> Arc<TyEnumDecl>
pub fn get_enum<I>(&self, index: &I) -> Arc<TyEnumDecl>
Friendly helper method for calling the get
method from the
implementation of DeclEngineGet for DeclEngine
Calling [DeclEngine][get] directly is equivalent to this method, but this method adds additional syntax that some users may find helpful.
sourcepub fn get_type_alias<I>(&self, index: &I) -> Arc<TyTypeAliasDecl>
pub fn get_type_alias<I>(&self, index: &I) -> Arc<TyTypeAliasDecl>
Friendly helper method for calling the get
method from the
implementation of DeclEngineGet for DeclEngine
Calling [DeclEngine][get] directly is equivalent to this method, but this method adds additional syntax that some users may find helpful.
sourcepub fn pretty_print(&self, engines: &Engines) -> String
pub fn pretty_print(&self, engines: &Engines) -> String
Pretty print method for printing the DeclEngine. This method is manually implemented to avoid implementation overhead regarding using [DisplayWithEngines].
Trait Implementations§
source§impl Clone for DeclEngine
impl Clone for DeclEngine
source§impl Debug for DeclEngine
impl Debug for DeclEngine
source§impl DeclEngineGet<DeclId<TyAbiDecl>, TyAbiDecl> for DeclEngine
impl DeclEngineGet<DeclId<TyAbiDecl>, TyAbiDecl> for DeclEngine
source§impl DeclEngineGet<DeclId<TyConstantDecl>, TyConstantDecl> for DeclEngine
impl DeclEngineGet<DeclId<TyConstantDecl>, TyConstantDecl> for DeclEngine
fn get(&self, index: &DeclId<TyConstantDecl>) -> Arc<TyConstantDecl>
source§impl DeclEngineGet<DeclId<TyEnumDecl>, TyEnumDecl> for DeclEngine
impl DeclEngineGet<DeclId<TyEnumDecl>, TyEnumDecl> for DeclEngine
fn get(&self, index: &DeclId<TyEnumDecl>) -> Arc<TyEnumDecl>
source§impl DeclEngineGet<DeclId<TyFunctionDecl>, TyFunctionDecl> for DeclEngine
impl DeclEngineGet<DeclId<TyFunctionDecl>, TyFunctionDecl> for DeclEngine
fn get(&self, index: &DeclId<TyFunctionDecl>) -> Arc<TyFunctionDecl>
source§impl DeclEngineGet<DeclId<TyImplTrait>, TyImplTrait> for DeclEngine
impl DeclEngineGet<DeclId<TyImplTrait>, TyImplTrait> for DeclEngine
fn get(&self, index: &DeclId<TyImplTrait>) -> Arc<TyImplTrait>
source§impl DeclEngineGet<DeclId<TyStorageDecl>, TyStorageDecl> for DeclEngine
impl DeclEngineGet<DeclId<TyStorageDecl>, TyStorageDecl> for DeclEngine
fn get(&self, index: &DeclId<TyStorageDecl>) -> Arc<TyStorageDecl>
source§impl DeclEngineGet<DeclId<TyStructDecl>, TyStructDecl> for DeclEngine
impl DeclEngineGet<DeclId<TyStructDecl>, TyStructDecl> for DeclEngine
fn get(&self, index: &DeclId<TyStructDecl>) -> Arc<TyStructDecl>
source§impl DeclEngineGet<DeclId<TyTraitDecl>, TyTraitDecl> for DeclEngine
impl DeclEngineGet<DeclId<TyTraitDecl>, TyTraitDecl> for DeclEngine
fn get(&self, index: &DeclId<TyTraitDecl>) -> Arc<TyTraitDecl>
source§impl DeclEngineGet<DeclId<TyTraitFn>, TyTraitFn> for DeclEngine
impl DeclEngineGet<DeclId<TyTraitFn>, TyTraitFn> for DeclEngine
source§impl DeclEngineGet<DeclId<TyTraitType>, TyTraitType> for DeclEngine
impl DeclEngineGet<DeclId<TyTraitType>, TyTraitType> for DeclEngine
fn get(&self, index: &DeclId<TyTraitType>) -> Arc<TyTraitType>
source§impl DeclEngineGet<DeclId<TyTypeAliasDecl>, TyTypeAliasDecl> for DeclEngine
impl DeclEngineGet<DeclId<TyTypeAliasDecl>, TyTypeAliasDecl> for DeclEngine
fn get(&self, index: &DeclId<TyTypeAliasDecl>) -> Arc<TyTypeAliasDecl>
source§impl DeclEngineGet<DeclRef<DeclId<TyAbiDecl>>, TyAbiDecl> for DeclEngine
impl DeclEngineGet<DeclRef<DeclId<TyAbiDecl>>, TyAbiDecl> for DeclEngine
source§impl DeclEngineGet<DeclRef<DeclId<TyConstantDecl>>, TyConstantDecl> for DeclEngine
impl DeclEngineGet<DeclRef<DeclId<TyConstantDecl>>, TyConstantDecl> for DeclEngine
fn get(&self, index: &DeclRef<DeclId<TyConstantDecl>>) -> Arc<TyConstantDecl>
source§impl DeclEngineGet<DeclRef<DeclId<TyEnumDecl>>, TyEnumDecl> for DeclEngine
impl DeclEngineGet<DeclRef<DeclId<TyEnumDecl>>, TyEnumDecl> for DeclEngine
fn get(&self, index: &DeclRef<DeclId<TyEnumDecl>>) -> Arc<TyEnumDecl>
source§impl DeclEngineGet<DeclRef<DeclId<TyFunctionDecl>>, TyFunctionDecl> for DeclEngine
impl DeclEngineGet<DeclRef<DeclId<TyFunctionDecl>>, TyFunctionDecl> for DeclEngine
fn get(&self, index: &DeclRef<DeclId<TyFunctionDecl>>) -> Arc<TyFunctionDecl>
source§impl DeclEngineGet<DeclRef<DeclId<TyImplTrait>>, TyImplTrait> for DeclEngine
impl DeclEngineGet<DeclRef<DeclId<TyImplTrait>>, TyImplTrait> for DeclEngine
fn get(&self, index: &DeclRef<DeclId<TyImplTrait>>) -> Arc<TyImplTrait>
source§impl DeclEngineGet<DeclRef<DeclId<TyStorageDecl>>, TyStorageDecl> for DeclEngine
impl DeclEngineGet<DeclRef<DeclId<TyStorageDecl>>, TyStorageDecl> for DeclEngine
fn get(&self, index: &DeclRef<DeclId<TyStorageDecl>>) -> Arc<TyStorageDecl>
source§impl DeclEngineGet<DeclRef<DeclId<TyStructDecl>>, TyStructDecl> for DeclEngine
impl DeclEngineGet<DeclRef<DeclId<TyStructDecl>>, TyStructDecl> for DeclEngine
fn get(&self, index: &DeclRef<DeclId<TyStructDecl>>) -> Arc<TyStructDecl>
source§impl DeclEngineGet<DeclRef<DeclId<TyTraitDecl>>, TyTraitDecl> for DeclEngine
impl DeclEngineGet<DeclRef<DeclId<TyTraitDecl>>, TyTraitDecl> for DeclEngine
fn get(&self, index: &DeclRef<DeclId<TyTraitDecl>>) -> Arc<TyTraitDecl>
source§impl DeclEngineGet<DeclRef<DeclId<TyTraitFn>>, TyTraitFn> for DeclEngine
impl DeclEngineGet<DeclRef<DeclId<TyTraitFn>>, TyTraitFn> for DeclEngine
source§impl DeclEngineGet<DeclRef<DeclId<TyTraitType>>, TyTraitType> for DeclEngine
impl DeclEngineGet<DeclRef<DeclId<TyTraitType>>, TyTraitType> for DeclEngine
fn get(&self, index: &DeclRef<DeclId<TyTraitType>>) -> Arc<TyTraitType>
source§impl DeclEngineGet<DeclRef<DeclId<TyTypeAliasDecl>>, TyTypeAliasDecl> for DeclEngine
impl DeclEngineGet<DeclRef<DeclId<TyTypeAliasDecl>>, TyTypeAliasDecl> for DeclEngine
fn get(&self, index: &DeclRef<DeclId<TyTypeAliasDecl>>) -> Arc<TyTypeAliasDecl>
source§impl DeclEngineInsert<TyAbiDecl> for DeclEngine
impl DeclEngineInsert<TyAbiDecl> for DeclEngine
source§impl DeclEngineInsert<TyConstantDecl> for DeclEngine
impl DeclEngineInsert<TyConstantDecl> for DeclEngine
fn insert(&self, decl: TyConstantDecl) -> DeclRef<DeclId<TyConstantDecl>>
source§impl DeclEngineInsert<TyEnumDecl> for DeclEngine
impl DeclEngineInsert<TyEnumDecl> for DeclEngine
fn insert(&self, decl: TyEnumDecl) -> DeclRef<DeclId<TyEnumDecl>>
source§impl DeclEngineInsert<TyFunctionDecl> for DeclEngine
impl DeclEngineInsert<TyFunctionDecl> for DeclEngine
fn insert(&self, decl: TyFunctionDecl) -> DeclRef<DeclId<TyFunctionDecl>>
source§impl DeclEngineInsert<TyImplTrait> for DeclEngine
impl DeclEngineInsert<TyImplTrait> for DeclEngine
fn insert(&self, decl: TyImplTrait) -> DeclRef<DeclId<TyImplTrait>>
source§impl DeclEngineInsert<TyStorageDecl> for DeclEngine
impl DeclEngineInsert<TyStorageDecl> for DeclEngine
fn insert(&self, decl: TyStorageDecl) -> DeclRef<DeclId<TyStorageDecl>>
source§impl DeclEngineInsert<TyStructDecl> for DeclEngine
impl DeclEngineInsert<TyStructDecl> for DeclEngine
fn insert(&self, decl: TyStructDecl) -> DeclRef<DeclId<TyStructDecl>>
source§impl DeclEngineInsert<TyTraitDecl> for DeclEngine
impl DeclEngineInsert<TyTraitDecl> for DeclEngine
fn insert(&self, decl: TyTraitDecl) -> DeclRef<DeclId<TyTraitDecl>>
source§impl DeclEngineInsert<TyTraitFn> for DeclEngine
impl DeclEngineInsert<TyTraitFn> for DeclEngine
source§impl DeclEngineInsert<TyTraitType> for DeclEngine
impl DeclEngineInsert<TyTraitType> for DeclEngine
fn insert(&self, decl: TyTraitType) -> DeclRef<DeclId<TyTraitType>>
source§impl DeclEngineInsert<TyTypeAliasDecl> for DeclEngine
impl DeclEngineInsert<TyTypeAliasDecl> for DeclEngine
fn insert(&self, decl: TyTypeAliasDecl) -> DeclRef<DeclId<TyTypeAliasDecl>>
source§impl DeclEngineInsertArc<TyAbiDecl> for DeclEngine
impl DeclEngineInsertArc<TyAbiDecl> for DeclEngine
source§impl DeclEngineInsertArc<TyConstantDecl> for DeclEngine
impl DeclEngineInsertArc<TyConstantDecl> for DeclEngine
fn insert_arc( &self, decl: Arc<TyConstantDecl> ) -> DeclRef<DeclId<TyConstantDecl>>
source§impl DeclEngineInsertArc<TyEnumDecl> for DeclEngine
impl DeclEngineInsertArc<TyEnumDecl> for DeclEngine
fn insert_arc(&self, decl: Arc<TyEnumDecl>) -> DeclRef<DeclId<TyEnumDecl>>
source§impl DeclEngineInsertArc<TyFunctionDecl> for DeclEngine
impl DeclEngineInsertArc<TyFunctionDecl> for DeclEngine
fn insert_arc( &self, decl: Arc<TyFunctionDecl> ) -> DeclRef<DeclId<TyFunctionDecl>>
source§impl DeclEngineInsertArc<TyImplTrait> for DeclEngine
impl DeclEngineInsertArc<TyImplTrait> for DeclEngine
fn insert_arc(&self, decl: Arc<TyImplTrait>) -> DeclRef<DeclId<TyImplTrait>>
source§impl DeclEngineInsertArc<TyStorageDecl> for DeclEngine
impl DeclEngineInsertArc<TyStorageDecl> for DeclEngine
fn insert_arc(&self, decl: Arc<TyStorageDecl>) -> DeclRef<DeclId<TyStorageDecl>>
source§impl DeclEngineInsertArc<TyStructDecl> for DeclEngine
impl DeclEngineInsertArc<TyStructDecl> for DeclEngine
fn insert_arc(&self, decl: Arc<TyStructDecl>) -> DeclRef<DeclId<TyStructDecl>>
source§impl DeclEngineInsertArc<TyTraitDecl> for DeclEngine
impl DeclEngineInsertArc<TyTraitDecl> for DeclEngine
fn insert_arc(&self, decl: Arc<TyTraitDecl>) -> DeclRef<DeclId<TyTraitDecl>>
source§impl DeclEngineInsertArc<TyTraitFn> for DeclEngine
impl DeclEngineInsertArc<TyTraitFn> for DeclEngine
source§impl DeclEngineInsertArc<TyTraitType> for DeclEngine
impl DeclEngineInsertArc<TyTraitType> for DeclEngine
fn insert_arc(&self, decl: Arc<TyTraitType>) -> DeclRef<DeclId<TyTraitType>>
source§impl DeclEngineInsertArc<TyTypeAliasDecl> for DeclEngine
impl DeclEngineInsertArc<TyTypeAliasDecl> for DeclEngine
fn insert_arc( &self, decl: Arc<TyTypeAliasDecl> ) -> DeclRef<DeclId<TyTypeAliasDecl>>
source§impl DeclEngineReplace<TyAbiDecl> for DeclEngine
impl DeclEngineReplace<TyAbiDecl> for DeclEngine
source§impl DeclEngineReplace<TyConstantDecl> for DeclEngine
impl DeclEngineReplace<TyConstantDecl> for DeclEngine
fn replace(&self, index: DeclId<TyConstantDecl>, decl: TyConstantDecl)
source§impl DeclEngineReplace<TyEnumDecl> for DeclEngine
impl DeclEngineReplace<TyEnumDecl> for DeclEngine
fn replace(&self, index: DeclId<TyEnumDecl>, decl: TyEnumDecl)
source§impl DeclEngineReplace<TyFunctionDecl> for DeclEngine
impl DeclEngineReplace<TyFunctionDecl> for DeclEngine
fn replace(&self, index: DeclId<TyFunctionDecl>, decl: TyFunctionDecl)
source§impl DeclEngineReplace<TyImplTrait> for DeclEngine
impl DeclEngineReplace<TyImplTrait> for DeclEngine
fn replace(&self, index: DeclId<TyImplTrait>, decl: TyImplTrait)
source§impl DeclEngineReplace<TyStorageDecl> for DeclEngine
impl DeclEngineReplace<TyStorageDecl> for DeclEngine
fn replace(&self, index: DeclId<TyStorageDecl>, decl: TyStorageDecl)
source§impl DeclEngineReplace<TyStructDecl> for DeclEngine
impl DeclEngineReplace<TyStructDecl> for DeclEngine
fn replace(&self, index: DeclId<TyStructDecl>, decl: TyStructDecl)
source§impl DeclEngineReplace<TyTraitDecl> for DeclEngine
impl DeclEngineReplace<TyTraitDecl> for DeclEngine
fn replace(&self, index: DeclId<TyTraitDecl>, decl: TyTraitDecl)
source§impl DeclEngineReplace<TyTraitFn> for DeclEngine
impl DeclEngineReplace<TyTraitFn> for DeclEngine
source§impl DeclEngineReplace<TyTraitType> for DeclEngine
impl DeclEngineReplace<TyTraitType> for DeclEngine
fn replace(&self, index: DeclId<TyTraitType>, decl: TyTraitType)
source§impl DeclEngineReplace<TyTypeAliasDecl> for DeclEngine
impl DeclEngineReplace<TyTypeAliasDecl> for DeclEngine
fn replace(&self, index: DeclId<TyTypeAliasDecl>, decl: TyTypeAliasDecl)
source§impl Default for DeclEngine
impl Default for DeclEngine
source§fn default() -> DeclEngine
fn default() -> DeclEngine
impl DeclEngineIndex<TyAbiDecl> for DeclEngine
impl DeclEngineIndex<TyConstantDecl> for DeclEngine
impl DeclEngineIndex<TyEnumDecl> for DeclEngine
impl DeclEngineIndex<TyFunctionDecl> for DeclEngine
impl DeclEngineIndex<TyImplTrait> for DeclEngine
impl DeclEngineIndex<TyStorageDecl> for DeclEngine
impl DeclEngineIndex<TyStructDecl> for DeclEngine
impl DeclEngineIndex<TyTraitDecl> for DeclEngine
impl DeclEngineIndex<TyTraitFn> for DeclEngine
impl DeclEngineIndex<TyTraitType> for DeclEngine
impl DeclEngineIndex<TyTypeAliasDecl> for DeclEngine
Auto Trait Implementations§
impl !Freeze for DeclEngine
impl RefUnwindSafe for DeclEngine
impl Send for DeclEngine
impl Sync for DeclEngine
impl Unpin for DeclEngine
impl UnwindSafe for DeclEngine
Blanket Implementations§
source§impl<T> AnyDebug for T
impl<T> AnyDebug for T
source§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Any
.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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<T> FmtForward for T
impl<T> FmtForward for T
source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
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>
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<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moresource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moresource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> StorageAsMut for T
impl<T> StorageAsMut for T
fn storage<Type>(&mut self) -> StorageMut<'_, Self, Type>where
Type: Mappable,
fn storage_as_mut<Type>(&mut self) -> StorageMut<'_, Self, Type>where
Type: Mappable,
source§impl<T> StorageAsRef for T
impl<T> StorageAsRef for T
fn storage<Type>(&self) -> StorageRef<'_, Self, Type>where
Type: Mappable,
fn storage_as_ref<Type>(&self) -> StorageRef<'_, Self, Type>where
Type: Mappable,
source§impl<T> Tap for T
impl<T> Tap for T
source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read moresource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read moresource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read moresource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read moresource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read moresource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read moresource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.