pub struct TypeSection {
pub types: Box<[SubType]>,
pub rec_group_lengths: Box<[u32]>,
}Expand description
The dense type index space of a WebAssembly module.
See https://webassembly.github.io/spec/core/syntax/types.html#syntax-rectype
Fields§
§types: Box<[SubType]>Types in module index order.
rec_group_lengths: Box<[u32]>Number of types in each recursive group, in section order.
Implementations§
Trait Implementations§
Source§impl Clone for TypeSection
impl Clone for TypeSection
Source§fn clone(&self) -> TypeSection
fn clone(&self) -> TypeSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TypeSection
impl Debug for TypeSection
Source§impl Default for TypeSection
impl Default for TypeSection
Source§fn default() -> TypeSection
fn default() -> TypeSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TypeSection
impl<'de> Deserialize<'de> for TypeSection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TypeSection
Source§impl PartialEq for TypeSection
impl PartialEq for TypeSection
Source§impl Serialize for TypeSection
impl Serialize for TypeSection
impl StructuralPartialEq for TypeSection
Auto Trait Implementations§
impl Freeze for TypeSection
impl RefUnwindSafe for TypeSection
impl Send for TypeSection
impl Sync for TypeSection
impl Unpin for TypeSection
impl UnsafeUnpin for TypeSection
impl UnwindSafe for TypeSection
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