Struct wast::Data [−][src]
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.