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

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


sections: Vec<Section>


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>

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, 

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.