pub struct Custom<'a> {
pub span: Span,
pub name: &'a str,
pub data: Vec<&'a [u8]>,
}Available on crate feature
component-model only.Expand description
A custom section within a component.
Fields§
§span: SpanWhere this @custom was defined.
name: &'a strName of the custom section.
data: Vec<&'a [u8]>Payload of this custom section.
Trait Implementations§
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