[−][src]Struct wit_walrus::Types
Methods
impl Types
[src]
pub fn get(&self, id: TypeId) -> &Type
[src]
Gets a reference to an type given its id
pub fn get_mut(&mut self, id: TypeId) -> &mut Type
[src]
Gets a reference to an type given its id
pub fn iter(&self) -> impl Iterator<Item = &Type>
[src]
Get a shared reference to this section's types.
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Type>
[src]
Get mutable references to this section's types.
pub fn add(&mut self, params: Vec<ValType>, results: Vec<ValType>) -> TypeId
[src]
Adds a new type to this section
Trait Implementations
Auto Trait Implementations
impl Send for Types
impl Sync for Types
impl Unpin for Types
impl UnwindSafe for Types
impl RefUnwindSafe for Types
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,