pub struct Section {
pub id: u8,
pub header_range: Range<usize>,
pub body_range: Range<usize>,
}Expand description
Metadata for one section, located by byte range into the
parent WasmFile’s bytes. The header_range covers
the section id byte plus the size-LEB; body_range covers
just the section’s payload.
Fields§
§id: u8§header_range: Range<usize>§body_range: Range<usize>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Section
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