[−][src]Struct wit_walrus::Types
Implementations
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 RefUnwindSafe for Types
impl Send for Types
impl Sync for Types
impl Unpin for Types
impl UnwindSafe for Types
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> 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 = Infallible
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>,