[][src]Trait wasmbin::sections::Payload

pub trait Payload: Encode + Decode + Into<Section> {
    const KIND: Kind;

    fn try_from_ref(section: &Section) -> Option<&Blob<Self>>;
fn try_from_mut(section: &mut Section) -> Option<&mut Blob<Self>>;
fn try_from(section: Section) -> Result<Blob<Self>, Section>; }

Associated Constants

const KIND: Kind

Loading content...

Required methods

fn try_from_ref(section: &Section) -> Option<&Blob<Self>>

fn try_from_mut(section: &mut Section) -> Option<&mut Blob<Self>>

fn try_from(section: Section) -> Result<Blob<Self>, Section>

Loading content...

Implementors

impl Payload for Code[src]

impl Payload for Custom[src]

impl Payload for Data[src]

impl Payload for Element[src]

impl Payload for Export[src]

impl Payload for Function[src]

impl Payload for Global[src]

impl Payload for Import[src]

impl Payload for Memory[src]

impl Payload for Start[src]

impl Payload for Table[src]

impl Payload for Type[src]

Loading content...