Struct InstanceType
pub struct InstanceType {
pub kind: CoreInstanceTypeKind,
/* private fields */
}
Expand description
Represents a module instance type.
Fields§
§kind: CoreInstanceTypeKind
The kind of module instance type.
Implementations§
§impl InstanceType
impl InstanceType
pub fn exports<'a>(
&'a self,
types: TypesRef<'a>,
) -> &'a IndexMap<String, EntityType>
pub fn exports<'a>( &'a self, types: TypesRef<'a>, ) -> &'a IndexMap<String, EntityType>
Gets the exports of the instance type.
Trait Implementations§
§impl Clone for InstanceType
impl Clone for InstanceType
§fn clone(&self) -> InstanceType
fn clone(&self) -> InstanceType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for InstanceType
impl Debug for InstanceType
§impl TypeData for InstanceType
impl TypeData for InstanceType
§const IS_CORE_SUB_TYPE: bool = false
const IS_CORE_SUB_TYPE: bool = false
Is this type a core sub type (or rec group of sub types)?
§type Id = ComponentCoreInstanceTypeId
type Id = ComponentCoreInstanceTypeId
The identifier for this type data.
Auto Trait Implementations§
impl Freeze for InstanceType
impl RefUnwindSafe for InstanceType
impl Send for InstanceType
impl Sync for InstanceType
impl Unpin for InstanceType
impl UnwindSafe for InstanceType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 more