[][src]Struct walrus::ModuleTypes

pub struct ModuleTypes { /* fields omitted */ }

The set of de-duplicated types within a module.

Methods

impl ModuleTypes[src]

pub fn get(&self, id: TypeId) -> &Type[src]

Get a type associated with an ID

pub fn get_mut(&mut self, id: TypeId) -> &mut Type[src]

Get a type associated with an ID

pub fn iter(
    &self
) -> impl Iterator<Item = &Type>
[src]

Get a shared reference to this module's types.

pub fn add(&mut self, params: &[ValType], results: &[ValType]) -> TypeId[src]

Add a new type to this module, and return its Id

Trait Implementations

impl Default for ModuleTypes[src]

impl Debug for ModuleTypes[src]

Auto Trait Implementations

impl Send for ModuleTypes

impl Sync for ModuleTypes

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]