pub struct RawCustomSection<'a>(pub &'a [u8]);
Expand description
A raw custom section where the bytes specified contain the leb-encoded length of the custom section, the custom section’s name, and the custom section’s data.
Tuple Fields§
§0: &'a [u8]
Trait Implementations§
source§impl<'a> Clone for RawCustomSection<'a>
impl<'a> Clone for RawCustomSection<'a>
source§fn clone(&self) -> RawCustomSection<'a>
fn clone(&self) -> RawCustomSection<'a>
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 ComponentSection for RawCustomSection<'_>
Available on crate feature component-model
only.
impl ComponentSection for RawCustomSection<'_>
Available on crate feature
component-model
only.source§impl<'a> Debug for RawCustomSection<'a>
impl<'a> Debug for RawCustomSection<'a>
source§impl Encode for RawCustomSection<'_>
impl Encode for RawCustomSection<'_>
Auto Trait Implementations§
impl<'a> Freeze for RawCustomSection<'a>
impl<'a> RefUnwindSafe for RawCustomSection<'a>
impl<'a> Send for RawCustomSection<'a>
impl<'a> Sync for RawCustomSection<'a>
impl<'a> Unpin for RawCustomSection<'a>
impl<'a> UnwindSafe for RawCustomSection<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)