[][src]Struct wast::Data

pub struct Data<'a> {
    pub span: Span,
    pub name: Option<Id<'a>>,
    pub kind: DataKind<'a>,
    pub data: Vec<&'a [u8]>,
}

A data directive in a WebAssembly module.

Fields

span: Span

Where this data was defined

name: Option<Id<'a>>

The optional name of this data segment

kind: DataKind<'a>

Whether this data segment is passive or active

data: Vec<&'a [u8]>

Bytes for this Data segment, viewed as the concatenation of all the contained slices.

Trait Implementations

impl<'a> Debug for Data<'a>[src]

impl<'a> Parse<'a> for Data<'a>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.