#[repr(u32)]pub enum Element {
ActiveWithFuncs {
offset: Expression,
funcs: Vec<FuncId>,
},
PassiveWithFuncs {
kind: ElemKind,
funcs: Vec<FuncId>,
},
ActiveWithTableAndFuncs {
table: TableId,
offset: Expression,
kind: ElemKind,
funcs: Vec<FuncId>,
},
DeclarativeWithFuncs {
kind: ElemKind,
funcs: Vec<FuncId>,
},
ActiveWithExprs {
offset: Expression,
exprs: Vec<Expression>,
},
PassiveWithExprs {
ty: RefType,
exprs: Vec<Expression>,
},
ActiveWithTableAndExprs {
table: TableId,
offset: Expression,
ty: RefType,
exprs: Vec<Expression>,
},
DeclarativeWithExprs {
ty: RefType,
exprs: Vec<Expression>,
},
}
Expand description
A single element.
Variants§
ActiveWithFuncs
PassiveWithFuncs
ActiveWithTableAndFuncs
DeclarativeWithFuncs
ActiveWithExprs
PassiveWithExprs
ActiveWithTableAndExprs
DeclarativeWithExprs
Trait Implementations§
source§impl DecodeWithDiscriminant for Element
impl DecodeWithDiscriminant for Element
§type Discriminant = u32
type Discriminant = u32
The discriminant representation.
source§fn maybe_decode_with_discriminant(
discriminant: u32,
r: &mut impl Read
) -> Result<Option<Self>, DecodeError>
fn maybe_decode_with_discriminant( discriminant: u32, r: &mut impl Read ) -> Result<Option<Self>, DecodeError>
Decodes the value from the given reader, if the discriminant matches. Read more
source§fn decode_with_discriminant(
discriminant: Self::Discriminant,
r: &mut impl Read
) -> Result<Self, DecodeError>
fn decode_with_discriminant( discriminant: Self::Discriminant, r: &mut impl Read ) -> Result<Self, DecodeError>
Decodes the value from the given reader, if the discriminant matches. Read more
source§fn decode_without_discriminant(r: &mut impl Read) -> Result<Self, DecodeError>
fn decode_without_discriminant(r: &mut impl Read) -> Result<Self, DecodeError>
Decodes this value fully, including the discriminant. Read more
source§impl PartialEq for Element
impl PartialEq for Element
source§impl Visit for Elementwhere
Self: 'static,
impl Visit for Elementwhere
Self: 'static,
source§fn visit_children<'a, VisitT: 'static, VisitE, VisitF: FnMut(&'a VisitT) -> Result<(), VisitE>>(
&'a self,
f: &mut VisitF
) -> Result<(), VisitError<VisitE>>
fn visit_children<'a, VisitT: 'static, VisitE, VisitF: FnMut(&'a VisitT) -> Result<(), VisitE>>( &'a self, f: &mut VisitF ) -> Result<(), VisitError<VisitE>>
Traverse the children of this value with the provided callback.
source§fn visit_children_mut<VisitT: 'static, VisitE, VisitF: FnMut(&mut VisitT) -> Result<(), VisitE>>(
&mut 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>>
Traverse the children of this value mutably with the provided callback.
source§fn visit<'a, T: 'static, R: VisitResult, F: FnMut(&'a T) -> R>(
&'a self,
f: F
) -> Result<(), VisitError<R::Error>>
fn visit<'a, T: 'static, R: VisitResult, F: FnMut(&'a T) -> R>( &'a self, f: F ) -> Result<(), VisitError<R::Error>>
Traverse this value with the provided callback.
source§fn visit_mut<T: 'static, R: VisitResult, F: FnMut(&mut T) -> R>(
&mut 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>>
Traverse this value mutably with the provided callback.
impl Eq for Element
impl StructuralEq for Element
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more