Enum wasmparser::Name[][src]

pub enum Name<'a> {
    Module(ModuleName<'a>),
    Function(FunctionName<'a>),
    Local(LocalName<'a>),
    Unknown {
        ty: u32,
        data: &'a [u8],
        range: Range,
    },
}

Variants

Module(ModuleName<'a>)
Function(FunctionName<'a>)
Local(LocalName<'a>)
Unknown

An unknown name subsection.

Show fields

Fields of Unknown

ty: u32

The identifier for this subsection.

data: &'a [u8]

The contents of this subsection.

range: Range

The range of bytes, relative to the start of the original data stream, that the contents of this subsection reside in.

Trait Implementations

impl<'a> Clone for Name<'a>[src]

impl<'a> Copy for Name<'a>[src]

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Name<'a>

impl<'a> Send for Name<'a>

impl<'a> Sync for Name<'a>

impl<'a> Unpin for Name<'a>

impl<'a> UnwindSafe for Name<'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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.