[][src]Enum wast::DataVal

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

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

Variants

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

Implementations

impl DataVal<'_>[src]

pub fn len(&self) -> usize[src]

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

pub fn push_onto(&self, dst: &mut Vec<u8>)[src]

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

Trait Implementations

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for DataVal<'a>[src]

impl<'a> Send for DataVal<'a>[src]

impl<'a> Sync for DataVal<'a>[src]

impl<'a> Unpin for DataVal<'a>[src]

impl<'a> UnwindSafe for DataVal<'a>[src]

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.