pub struct Interface {
pub name: &'static str,
pub fields: &'static [(&'static str, &'static str)],
}Expand description
An interface not modeled as a Rust struct (e.g. ad-hoc WASM return shapes).
Fields§
§name: &'static strInterface name.
fields: &'static [(&'static str, &'static str)]Fields: (name, type). All emitted as readonly/covariant.
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnsafeUnpin for Interface
impl UnwindSafe for Interface
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