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