Enum wast::core::ModuleKind
source · pub enum ModuleKind<'a> {
Text(Vec<ModuleField<'a>>),
Binary(Vec<&'a [u8]>),
}
Expand description
The different kinds of ways to define a module.
Variants§
Text(Vec<ModuleField<'a>>)
A module defined in the textual s-expression format.
Binary(Vec<&'a [u8]>)
A module that had its raw binary bytes defined via the binary
directive.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ModuleKind<'a>
impl<'a> RefUnwindSafe for ModuleKind<'a>
impl<'a> Send for ModuleKind<'a>
impl<'a> Sync for ModuleKind<'a>
impl<'a> Unpin for ModuleKind<'a>
impl<'a> UnwindSafe for ModuleKind<'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