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

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

Required methods

Implementors