Struct wast::Alias[][src]

pub struct Alias<'a> {
    pub span: Span,
    pub id: Option<Id<'a>>,
    pub name: Option<NameAnnotation<'a>>,
    pub source: AliasSource<'a>,
    pub kind: ExportKind,
}

An alias statement used to juggle indices with nested modules.

Fields

span: Span

Where this alias was defined.

id: Option<Id<'a>>

An identifier that this alias is resolved with (optionally) for name resolution.

name: Option<NameAnnotation<'a>>

An optional name for this alias stored in the custom name section.

source: AliasSource<'a>

The source of this alias.

kind: ExportKind

The kind of item that’s being aliased.

Trait Implementations

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Alias<'a>

impl<'a> Send for Alias<'a>

impl<'a> Sync for Alias<'a>

impl<'a> Unpin for Alias<'a>

impl<'a> UnwindSafe for Alias<'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.