Enum wast::DataVal[][src]

pub enum DataVal<'a> {
    String(&'a [u8]),
    Integral(Vec<u8>),
}
Expand description

Differnet ways the value of a data segment can be defined.

Variants

String(&'a [u8])

Tuple Fields of String

0: &'a [u8]
Integral(Vec<u8>)

Tuple Fields of Integral

0: Vec<u8>

Implementations

Returns the length, in bytes, of the memory used to represent this data value.

Pushes the value of this data value onto the provided list of bytes.

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.