Enum wasmbin::sections::ExportDesc
source · #[repr(u8)]pub enum ExportDesc {
Func(FuncId),
Table(TableId),
Mem(MemId),
Global(GlobalId),
Exception(ExceptionId),
}
Expand description
Variants§
Func(FuncId)
Table(TableId)
Mem(MemId)
Global(GlobalId)
Exception(ExceptionId)
Available on crate feature
exception-handling
only.Trait Implementations§
source§impl Clone for ExportDesc
impl Clone for ExportDesc
source§fn clone(&self) -> ExportDesc
fn clone(&self) -> ExportDesc
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExportDesc
impl Debug for ExportDesc
source§impl Decode for ExportDesc
impl Decode for ExportDesc
source§impl DecodeWithDiscriminant for ExportDesc
impl DecodeWithDiscriminant for ExportDesc
§type Discriminant = u8
type Discriminant = u8
The discriminant representation.
source§fn maybe_decode_with_discriminant(
discriminant: u8,
r: &mut impl Read
) -> Result<Option<Self>, DecodeError>
fn maybe_decode_with_discriminant( discriminant: u8, 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 Encode for ExportDesc
impl Encode for ExportDesc
source§impl Hash for ExportDesc
impl Hash for ExportDesc
source§impl PartialEq for ExportDesc
impl PartialEq for ExportDesc
source§fn eq(&self, other: &ExportDesc) -> bool
fn eq(&self, other: &ExportDesc) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Visit for ExportDescwhere
Self: 'static,
impl Visit for ExportDescwhere
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 ExportDesc
impl StructuralEq for ExportDesc
impl StructuralPartialEq for ExportDesc
Auto Trait Implementations§
impl RefUnwindSafe for ExportDesc
impl Send for ExportDesc
impl Sync for ExportDesc
impl Unpin for ExportDesc
impl UnwindSafe for ExportDesc
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