Enum wasmbin::sections::DataInit [−][src]
#[repr(u8)] pub enum DataInit { Active { offset: Expression, }, Passive, ActiveWithMemory { memory: MemId, offset: Expression, }, }
Variants
Fields of Active
offset: Expression
Fields of ActiveWithMemory
memory: MemId
offset: Expression
Trait Implementations
type Discriminant = u8
fn maybe_decode_with_discriminant(
discriminant: u8,
r: &mut impl Read
) -> Result<Option<Self>, DecodeError>
fn decode_with_discriminant(
discriminant: Self::Discriminant,
r: &mut impl Read
) -> Result<Self, DecodeError>
fn visit_children<'a, VisitT: 'static, VisitE, VisitF: FnMut(&'a VisitT) -> Result<(), VisitE>>(
&'a self,
f: &mut VisitF
) -> Result<(), VisitError<VisitE>>
fn visit_children_mut<VisitT: 'static, VisitE, VisitF: FnMut(&mut VisitT) -> Result<(), VisitE>>(
&mut self,
f: &mut VisitF
) -> Result<(), VisitError<VisitE>>
fn visit<'a, T: 'static, R: VisitResult, F: FnMut(&'a T) -> R>(
&'a self,
f: F
) -> Result<(), VisitError<R::Error>>
fn visit_mut<T: 'static, R: VisitResult, F: FnMut(&mut T) -> R>(
&mut self,
f: F
) -> Result<(), VisitError<R::Error>>
fn visit_child<'a, T: 'static, E, F: FnMut(&'a T) -> Result<(), E>>(
&'a self,
f: &mut F
) -> Result<(), VisitError<E>>
fn visit_child_mut<T: 'static, E, F: FnMut(&mut T) -> Result<(), E>>(
&mut self,
f: &mut F
) -> Result<(), VisitError<E>>
Auto Trait Implementations
impl RefUnwindSafe for DataInit
impl UnwindSafe for DataInit
Blanket Implementations
Mutably borrows from an owned value. Read more