Struct wast::ModuleType
source · [−]pub struct ModuleType<'a> {
pub imports: Vec<Import<'a>>,
pub exports: Vec<ExportType<'a>>,
}
Expand description
A type for a nested module
Fields
imports: Vec<Import<'a>>
The imports that are expected for this module type.
exports: Vec<ExportType<'a>>
The exports that this module type is expected to have.
Trait Implementations
sourceimpl<'a> Clone for ModuleType<'a>
impl<'a> Clone for ModuleType<'a>
sourcefn clone(&self) -> ModuleType<'a>
fn clone(&self) -> ModuleType<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for ModuleType<'a>
impl<'a> Debug for ModuleType<'a>
sourceimpl<'a> Default for ModuleType<'a>
impl<'a> Default for ModuleType<'a>
sourcefn default() -> ModuleType<'a>
fn default() -> ModuleType<'a>
Returns the “default value” for a type. Read more
sourceimpl<'a> Parse<'a> for ModuleType<'a>
impl<'a> Parse<'a> for ModuleType<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ModuleType<'a>
impl<'a> Send for ModuleType<'a>
impl<'a> Sync for ModuleType<'a>
impl<'a> Unpin for ModuleType<'a>
impl<'a> UnwindSafe for ModuleType<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more