pub struct Type<'a> {
pub name: Option<Id<'a>>,
pub params: Vec<(Option<Id<'a>>, ValType)>,
pub results: Vec<ValType>,
}Expand description
A type declaration in a wasm interface type subsection
Fields§
§name: Option<Id<'a>>The optional name of this type, used to refer to it from elsewhere.
params: Vec<(Option<Id<'a>>, ValType)>Explicitly listed parameters with optional names, if any.
results: Vec<ValType>The results of this function signature.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Type<'a>
impl<'a> RefUnwindSafe for Type<'a>
impl<'a> Send for Type<'a>
impl<'a> Sync for Type<'a>
impl<'a> Unpin for Type<'a>
impl<'a> UnwindSafe for Type<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more