[][src]Struct wasmbin::module::Module

pub struct Module {
    pub sections: Vec<Section>,
    // some fields omitted
}

Fields

sections: Vec<Section>

Implementations

impl Module[src]

pub fn decode_from(r: impl Read) -> Result<Module, DecodeError>[src]

pub fn encode_into<W: Write>(&self, w: W) -> Result<W>[src]

pub fn find_std_section<T: StdPayload>(&self) -> Option<&Blob<T>>[src]

pub fn find_std_section_mut<T: StdPayload>(&mut self) -> Option<&mut Blob<T>>[src]

pub fn find_or_insert_std_section<T: StdPayload>(
    &mut self,
    insert_callback: impl FnOnce() -> T
) -> &mut Blob<T>
[src]

Trait Implementations

impl Arbitrary for Module[src]

impl Clone for Module[src]

impl Debug for Module[src]

impl Decode for Module[src]

impl Default for Module[src]

impl Encode for Module[src]

impl Eq for Module[src]

impl Hash for Module[src]

impl PartialEq<Module> for Module[src]

impl StructuralEq for Module[src]

impl StructuralPartialEq for Module[src]

impl Visit for Module where
    Self: 'static, 
[src]

Auto Trait Implementations

impl RefUnwindSafe for Module

impl Send for Module

impl Sync for Module

impl Unpin for Module

impl UnwindSafe for Module

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.