Enum wasmbin::sections::NameSubSection
source · #[repr(u8)]pub enum NameSubSection {
Module(Blob<String>),
Func(Blob<NameMap<FuncId>>),
Local(Blob<IndirectNameMap<FuncId, LocalId>>),
Label(Blob<IndirectNameMap<FuncId, LabelId>>),
Type(Blob<NameMap<TypeId>>),
Table(Blob<NameMap<TableId>>),
Memory(Blob<NameMap<MemId>>),
Global(Blob<NameMap<GlobalId>>),
Elem(Blob<NameMap<ElemId>>),
Data(Blob<NameMap<DataId>>),
}
Expand description
Variants§
Module(Blob<String>)
Func(Blob<NameMap<FuncId>>)
Local(Blob<IndirectNameMap<FuncId, LocalId>>)
Local names grouped by function index.
Label(Blob<IndirectNameMap<FuncId, LabelId>>)
Available on crate feature
extended-name-section
only.Label names grouped by function index.
Type(Blob<NameMap<TypeId>>)
Available on crate feature
extended-name-section
only.Table(Blob<NameMap<TableId>>)
Available on crate feature
extended-name-section
only.Memory(Blob<NameMap<MemId>>)
Available on crate feature
extended-name-section
only.Global(Blob<NameMap<GlobalId>>)
Available on crate feature
extended-name-section
only.Elem(Blob<NameMap<ElemId>>)
Available on crate feature
extended-name-section
only.Element segment names.
Data(Blob<NameMap<DataId>>)
Available on crate feature
extended-name-section
only.Data segment names.
Trait Implementations§
source§impl Clone for NameSubSection
impl Clone for NameSubSection
source§fn clone(&self) -> NameSubSection
fn clone(&self) -> NameSubSection
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 NameSubSection
impl Debug for NameSubSection
source§impl Decode for NameSubSection
impl Decode for NameSubSection
source§impl DecodeWithDiscriminant for NameSubSection
impl DecodeWithDiscriminant for NameSubSection
§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 NameSubSection
impl Encode for NameSubSection
source§impl Hash for NameSubSection
impl Hash for NameSubSection
source§impl PartialEq for NameSubSection
impl PartialEq for NameSubSection
source§fn eq(&self, other: &NameSubSection) -> bool
fn eq(&self, other: &NameSubSection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Visit for NameSubSectionwhere
Self: 'static,
impl Visit for NameSubSectionwhere
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 NameSubSection
impl StructuralEq for NameSubSection
impl StructuralPartialEq for NameSubSection
Auto Trait Implementations§
impl RefUnwindSafe for NameSubSection
impl Send for NameSubSection
impl Sync for NameSubSection
impl Unpin for NameSubSection
impl UnwindSafe for NameSubSection
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