pub struct Data<'a> {
pub span: Span,
pub id: Option<Id<'a>>,
pub name: Option<NameAnnotation<'a>>,
pub kind: DataKind<'a>,
pub data: Vec<DataVal<'a>>,
}
Expand description
A data
directive in a WebAssembly module.
Fields§
§span: Span
Where this data
was defined
id: Option<Id<'a>>
The optional name of this data segment
name: Option<NameAnnotation<'a>>
An optional name for this data stored in the custom name
section.
kind: DataKind<'a>
Whether this data segment is passive or active
data: Vec<DataVal<'a>>
Bytes for this Data
segment, viewed as the concatenation of all the
contained slices.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Data<'a>
impl<'a> RefUnwindSafe for Data<'a>
impl<'a> Send for Data<'a>
impl<'a> Sync for Data<'a>
impl<'a> Unpin for Data<'a>
impl<'a> UnwindSafe for Data<'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