pub struct Custom<'a> {
pub span: Span,
pub name: &'a str,
pub data: Vec<&'a [u8]>,
}
Expand description
A custom section within a component.
Fields§
§span: Span
Where this @custom
was defined.
name: &'a str
Name of the custom section.
data: Vec<&'a [u8]>
Payload of this custom section.
Trait Implementations§
source§impl ComponentSection for Custom<'_>
impl ComponentSection for Custom<'_>
Auto Trait Implementations§
impl<'a> Freeze for Custom<'a>
impl<'a> RefUnwindSafe for Custom<'a>
impl<'a> Send for Custom<'a>
impl<'a> Sync for Custom<'a>
impl<'a> Unpin for Custom<'a>
impl<'a> UnwindSafe for Custom<'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