[][src]Enum wast::RefType

pub enum RefType<'a> {
    Func,
    Extern,
    Exn,
    Eq,
    I31,
    Type(Index<'a>),
    OptType(Index<'a>),
}

The reference value types for a wasm module.

Variants

Func

An untyped function reference: funcref. This is part of the reference types proposal.

Extern

A reference to any host value: externref. This was originally known as anyref when it was the supertype of all reference value types. This is part of the reference types proposal.

Exn

A reference to an exception: exnref. This is part of the exception handling proposal.

Eq

A reference that has an identity that can be compared: eqref. This is part of the GC proposal.

I31

An unboxed 31-bit integer: i31ref. This may be going away if there is no common supertype of all reference types. Part of the GC proposal.

Type(Index<'a>)

A reference to a function, struct, or array: ref T. This is part of the GC proposal.

OptType(Index<'a>)

A nullable reference to a function, struct, or array: optref T. This is part of the GC proposal.

Trait Implementations

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

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

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

impl<'a> Eq for RefType<'a>[src]

impl<'a> From<TableElemType> for RefType<'a>[src]

impl<'a> Hash for RefType<'a>[src]

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

impl<'a> PartialEq<RefType<'a>> for RefType<'a>[src]

impl<'a> StructuralEq for RefType<'a>[src]

impl<'a> StructuralPartialEq for RefType<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for RefType<'a>

impl<'a> Send for RefType<'a>

impl<'a> Sync for RefType<'a>

impl<'a> Unpin for RefType<'a>

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