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>,