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.

Trait Implementations

Formats the value using the given formatter. Read more

Attempts to parse Self from parser, returning an error if it could not be parsed. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.