[][src]Enum rune_testing::Meta

pub enum Meta {
    MetaTuple {
        value_type: Type,
        tuple: MetaTuple,
    },
    MetaVariantTuple {
        value_type: Type,
        enum_item: Item,
        tuple: MetaTuple,
    },
    MetaStruct {
        value_type: Type,
        object: MetaStruct,
    },
    MetaVariantStruct {
        value_type: Type,
        enum_item: Item,
        object: MetaStruct,
    },
    MetaEnum {
        value_type: Type,
        item: Item,
    },
    MetaFunction {
        value_type: Type,
        item: Item,
    },
    MetaClosure {
        value_type: Type,
        item: Item,
        captures: Arc<Vec<MetaClosureCapture>>,
    },
    MetaAsyncBlock {
        value_type: Type,
        item: Item,
        captures: Arc<Vec<MetaClosureCapture>>,
    },
}

Metadata about an item in the context.

Variants

MetaTuple

Metadata about a tuple.

Fields of MetaTuple

value_type: Type

The value type associated with this meta item.

tuple: MetaTuple

The underlying tuple.

MetaVariantTuple

Metadata about a tuple variant.

Fields of MetaVariantTuple

value_type: Type

The value type associated with this meta item.

enum_item: Item

The item of the enum.

tuple: MetaTuple

The underlying tuple.

MetaStruct

Metadata about an object.

Fields of MetaStruct

value_type: Type

The value type associated with this meta item.

object: MetaStruct

The underlying object.

MetaVariantStruct

Metadata about a variant object.

Fields of MetaVariantStruct

value_type: Type

The value type associated with this meta item.

enum_item: Item

The item of the enum.

object: MetaStruct

The underlying object.

MetaEnum

An enum item.

Fields of MetaEnum

value_type: Type

The value type associated with this meta item.

item: Item

The item of the enum.

MetaFunction

A function declaration.

Fields of MetaFunction

value_type: Type

The value type associated with this meta item.

item: Item

The item of the function declaration.

MetaClosure

A closure.

Fields of MetaClosure

value_type: Type

The value type associated with this meta item.

item: Item

The item of the closure.

captures: Arc<Vec<MetaClosureCapture>>

Sequence of captured variables.

MetaAsyncBlock

An async block.

Fields of MetaAsyncBlock

value_type: Type

The value type associated with this meta item.

item: Item

The item of the closure.

captures: Arc<Vec<MetaClosureCapture>>

Sequence of captured variables.

Implementations

impl Meta[src]

pub fn item(&self) -> &Item[src]

Get the item of the meta.

pub fn value_type(&self) -> Option<Type>[src]

Get the value type of the meta item.

Trait Implementations

impl Clone for Meta[src]

impl Debug for Meta[src]

impl Display for Meta[src]

Auto Trait Implementations

impl RefUnwindSafe for Meta

impl Send for Meta

impl Sync for Meta

impl Unpin for Meta

impl UnwindSafe for Meta

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> ToString for T where
    T: Display + ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,