wasmtime_environ::component

Struct ComponentTypes

source
pub struct ComponentTypes { /* private fields */ }
Expand description

Runtime information about the type information contained within a component.

One of these is created per top-level component which describes all of the types contained within the top-level component itself. Each sub-component will have a pointer to this value as well.

Implementations§

source§

impl ComponentTypes

source

pub fn module_types(&self) -> &ModuleTypes

Returns the core wasm module types known within this component.

source

pub fn canonical_abi(&self, ty: &InterfaceType) -> &CanonicalAbiInfo

Returns the canonical ABI information about the specified type.

source

pub fn push_resource_table( &mut self, table: TypeResourceTable, ) -> TypeResourceTableIndex

Adds a new table to the list of resource tables for this component.

Trait Implementations§

source§

impl Default for ComponentTypes

source§

fn default() -> ComponentTypes

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

impl<'de> Deserialize<'de> for ComponentTypes

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T> Index<T> for ComponentTypes
where ModuleTypes: Index<T>,

source§

type Output = <ModuleTypes as Index<T>>::Output

The returned type after indexing.
source§

fn index(&self, idx: T) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl Index<TypeComponentIndex> for ComponentTypes

source§

type Output = TypeComponent

The returned type after indexing.
source§

fn index(&self, idx: TypeComponentIndex) -> &TypeComponent

Performs the indexing (container[index]) operation. Read more
source§

impl Index<TypeComponentInstanceIndex> for ComponentTypes

source§

type Output = TypeComponentInstance

The returned type after indexing.
source§

fn index(&self, idx: TypeComponentInstanceIndex) -> &TypeComponentInstance

Performs the indexing (container[index]) operation. Read more
source§

impl Index<TypeEnumIndex> for ComponentTypes

source§

type Output = TypeEnum

The returned type after indexing.
source§

fn index(&self, idx: TypeEnumIndex) -> &TypeEnum

Performs the indexing (container[index]) operation. Read more
source§

impl Index<TypeFlagsIndex> for ComponentTypes

source§

type Output = TypeFlags

The returned type after indexing.
source§

fn index(&self, idx: TypeFlagsIndex) -> &TypeFlags

Performs the indexing (container[index]) operation. Read more
source§

impl Index<TypeFuncIndex> for ComponentTypes

source§

type Output = TypeFunc

The returned type after indexing.
source§

fn index(&self, idx: TypeFuncIndex) -> &TypeFunc

Performs the indexing (container[index]) operation. Read more
source§

impl Index<TypeListIndex> for ComponentTypes

source§

type Output = TypeList

The returned type after indexing.
source§

fn index(&self, idx: TypeListIndex) -> &TypeList

Performs the indexing (container[index]) operation. Read more
source§

impl Index<TypeModuleIndex> for ComponentTypes

source§

type Output = TypeModule

The returned type after indexing.
source§

fn index(&self, idx: TypeModuleIndex) -> &TypeModule

Performs the indexing (container[index]) operation. Read more
source§

impl Index<TypeOptionIndex> for ComponentTypes

source§

type Output = TypeOption

The returned type after indexing.
source§

fn index(&self, idx: TypeOptionIndex) -> &TypeOption

Performs the indexing (container[index]) operation. Read more
source§

impl Index<TypeRecordIndex> for ComponentTypes

source§

type Output = TypeRecord

The returned type after indexing.
source§

fn index(&self, idx: TypeRecordIndex) -> &TypeRecord

Performs the indexing (container[index]) operation. Read more
source§

impl Index<TypeResourceTableIndex> for ComponentTypes

source§

type Output = TypeResourceTable

The returned type after indexing.
source§

fn index(&self, idx: TypeResourceTableIndex) -> &TypeResourceTable

Performs the indexing (container[index]) operation. Read more
source§

impl Index<TypeResultIndex> for ComponentTypes

source§

type Output = TypeResult

The returned type after indexing.
source§

fn index(&self, idx: TypeResultIndex) -> &TypeResult

Performs the indexing (container[index]) operation. Read more
source§

impl Index<TypeTupleIndex> for ComponentTypes

source§

type Output = TypeTuple

The returned type after indexing.
source§

fn index(&self, idx: TypeTupleIndex) -> &TypeTuple

Performs the indexing (container[index]) operation. Read more
source§

impl Index<TypeVariantIndex> for ComponentTypes

source§

type Output = TypeVariant

The returned type after indexing.
source§

fn index(&self, idx: TypeVariantIndex) -> &TypeVariant

Performs the indexing (container[index]) operation. Read more
source§

impl Serialize for ComponentTypes

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§

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

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,