pub struct CustomSection<'a> { /* private fields */ }
Expand description
A Wasm custom section.
Implementations§
Source§impl<'a> CustomSection<'a>
impl<'a> CustomSection<'a>
Sourcepub fn name(&self) -> &'a str
pub fn name(&self) -> &'a str
Returns the name or identifier of the CustomSection
.
Sourcepub fn data(&self) -> &'a [u8] ⓘ
pub fn data(&self) -> &'a [u8] ⓘ
Returns a shared reference to the data of the CustomSection
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CustomSection<'a>
impl<'a> RefUnwindSafe for CustomSection<'a>
impl<'a> Send for CustomSection<'a>
impl<'a> Sync for CustomSection<'a>
impl<'a> Unpin for CustomSection<'a>
impl<'a> UnwindSafe for CustomSection<'a>
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