pub struct DeclEngine { /* private fields */ }
Expand description

Used inside of type inference to store declarations.

Implementations§

source§

impl DeclEngine

source

pub fn get_function<I>(&self, index: &I) -> TyFunctionDeclwhere DeclEngine: DeclEngineGet<I, 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.

source

pub fn get_trait<I>(&self, index: &I) -> TyTraitDeclwhere DeclEngine: DeclEngineGet<I, 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.

source

pub fn get_trait_fn<I>(&self, index: &I) -> TyTraitFnwhere DeclEngine: DeclEngineGet<I, 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.

source

pub fn get_impl_trait<I>(&self, index: &I) -> TyImplTraitwhere DeclEngine: DeclEngineGet<I, 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.

source

pub fn get_struct<I>(&self, index: &I) -> TyStructDeclwhere DeclEngine: DeclEngineGet<I, 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.

source

pub fn get_storage<I>(&self, index: &I) -> TyStorageDeclwhere DeclEngine: DeclEngineGet<I, 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.

source

pub fn get_abi<I>(&self, index: &I) -> TyAbiDeclwhere DeclEngine: DeclEngineGet<I, 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.

source

pub fn get_constant<I>(&self, index: &I) -> TyConstantDeclwhere DeclEngine: DeclEngineGet<I, 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.

source

pub fn get_enum<I>(&self, index: &I) -> TyEnumDeclwhere DeclEngine: DeclEngineGet<I, 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.

source

pub fn get_type_alias<I>(&self, index: &I) -> TyTypeAliasDeclwhere DeclEngine: DeclEngineGet<I, 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.

Trait Implementations§

source§

impl Debug for DeclEngine

source§

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

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

impl DeclEngineGet<DeclId<TyAbiDecl>, TyAbiDecl> for DeclEngine

source§

fn get(&self, index: &DeclId<TyAbiDecl>) -> TyAbiDecl

source§

impl DeclEngineGet<DeclId<TyConstantDecl>, TyConstantDecl> for DeclEngine

source§

impl DeclEngineGet<DeclId<TyEnumDecl>, TyEnumDecl> for DeclEngine

source§

fn get(&self, index: &DeclId<TyEnumDecl>) -> TyEnumDecl

source§

impl DeclEngineGet<DeclId<TyFunctionDecl>, TyFunctionDecl> for DeclEngine

source§

impl DeclEngineGet<DeclId<TyImplTrait>, TyImplTrait> for DeclEngine

source§

fn get(&self, index: &DeclId<TyImplTrait>) -> TyImplTrait

source§

impl DeclEngineGet<DeclId<TyStorageDecl>, TyStorageDecl> for DeclEngine

source§

impl DeclEngineGet<DeclId<TyStructDecl>, TyStructDecl> for DeclEngine

source§

impl DeclEngineGet<DeclId<TyTraitDecl>, TyTraitDecl> for DeclEngine

source§

fn get(&self, index: &DeclId<TyTraitDecl>) -> TyTraitDecl

source§

impl DeclEngineGet<DeclId<TyTraitFn>, TyTraitFn> for DeclEngine

source§

fn get(&self, index: &DeclId<TyTraitFn>) -> TyTraitFn

source§

impl DeclEngineGet<DeclId<TyTypeAliasDecl>, TyTypeAliasDecl> for DeclEngine

source§

impl DeclEngineGet<DeclRef<DeclId<TyAbiDecl>>, TyAbiDecl> for DeclEngine

source§

fn get(&self, index: &DeclRef<DeclId<TyAbiDecl>>) -> TyAbiDecl

source§

impl DeclEngineGet<DeclRef<DeclId<TyConstantDecl>>, TyConstantDecl> for DeclEngine

source§

impl DeclEngineGet<DeclRef<DeclId<TyEnumDecl>>, TyEnumDecl> for DeclEngine

source§

impl DeclEngineGet<DeclRef<DeclId<TyFunctionDecl>>, TyFunctionDecl> for DeclEngine

source§

impl DeclEngineGet<DeclRef<DeclId<TyImplTrait>>, TyImplTrait> for DeclEngine

source§

impl DeclEngineGet<DeclRef<DeclId<TyStorageDecl>>, TyStorageDecl> for DeclEngine

source§

impl DeclEngineGet<DeclRef<DeclId<TyStructDecl>>, TyStructDecl> for DeclEngine

source§

impl DeclEngineGet<DeclRef<DeclId<TyTraitDecl>>, TyTraitDecl> for DeclEngine

source§

impl DeclEngineGet<DeclRef<DeclId<TyTraitFn>>, TyTraitFn> for DeclEngine

source§

fn get(&self, index: &DeclRef<DeclId<TyTraitFn>>) -> TyTraitFn

source§

impl DeclEngineGet<DeclRef<DeclId<TyTypeAliasDecl>>, TyTypeAliasDecl> for DeclEngine

source§

impl DeclEngineInsert<TyAbiDecl> for DeclEngine

source§

impl DeclEngineInsert<TyConstantDecl> for DeclEngine

source§

impl DeclEngineInsert<TyEnumDecl> for DeclEngine

source§

impl DeclEngineInsert<TyFunctionDecl> for DeclEngine

source§

impl DeclEngineInsert<TyImplTrait> for DeclEngine

source§

impl DeclEngineInsert<TyStorageDecl> for DeclEngine

source§

impl DeclEngineInsert<TyStructDecl> for DeclEngine

source§

impl DeclEngineInsert<TyTraitDecl> for DeclEngine

source§

impl DeclEngineInsert<TyTraitFn> for DeclEngine

source§

impl DeclEngineInsert<TyTypeAliasDecl> for DeclEngine

source§

impl DeclEngineReplace<TyAbiDecl> for DeclEngine

source§

fn replace(&self, index: DeclId<TyAbiDecl>, decl: TyAbiDecl)

source§

impl DeclEngineReplace<TyConstantDecl> for DeclEngine

source§

impl DeclEngineReplace<TyEnumDecl> for DeclEngine

source§

fn replace(&self, index: DeclId<TyEnumDecl>, decl: TyEnumDecl)

source§

impl DeclEngineReplace<TyFunctionDecl> for DeclEngine

source§

impl DeclEngineReplace<TyImplTrait> for DeclEngine

source§

fn replace(&self, index: DeclId<TyImplTrait>, decl: TyImplTrait)

source§

impl DeclEngineReplace<TyStorageDecl> for DeclEngine

source§

impl DeclEngineReplace<TyStructDecl> for DeclEngine

source§

impl DeclEngineReplace<TyTraitDecl> for DeclEngine

source§

fn replace(&self, index: DeclId<TyTraitDecl>, decl: TyTraitDecl)

source§

impl DeclEngineReplace<TyTraitFn> for DeclEngine

source§

fn replace(&self, index: DeclId<TyTraitFn>, decl: TyTraitFn)

source§

impl DeclEngineReplace<TyTypeAliasDecl> for DeclEngine

source§

impl Default for DeclEngine

source§

fn default() -> DeclEngine

Returns the “default value” for a type. Read more
source§

impl DeclEngineIndex<TyAbiDecl> for DeclEngine

source§

impl DeclEngineIndex<TyConstantDecl> for DeclEngine

source§

impl DeclEngineIndex<TyEnumDecl> for DeclEngine

source§

impl DeclEngineIndex<TyFunctionDecl> for DeclEngine

source§

impl DeclEngineIndex<TyImplTrait> for DeclEngine

source§

impl DeclEngineIndex<TyStorageDecl> for DeclEngine

source§

impl DeclEngineIndex<TyStructDecl> for DeclEngine

source§

impl DeclEngineIndex<TyTraitDecl> for DeclEngine

source§

impl DeclEngineIndex<TyTraitFn> for DeclEngine

source§

impl DeclEngineIndex<TyTypeAliasDecl> for DeclEngine

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> AnyDebug for Twhere T: Any + Debug,

source§

fn as_any_ref(&self) -> &(dyn Any + 'static)

Returns a reference to the underlying type as Any.
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere T: Any,

§

fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>

Convert 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.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &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)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

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

§

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

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further 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.

source§

impl<T> Instrument for T

source§

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

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

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

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

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

impl<T> Same<T> for T

§

type Output = T

Should always be Self
§

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,

§

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, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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 Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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