Struct rune::ast::ItemVariant[][src]

pub struct ItemVariant {
    pub id: Option<Id>,
    pub attributes: Vec<Attribute>,
    pub name: Ident,
    pub body: ItemVariantBody,
}

An enum variant.

Fields

id: Option<Id>

Opaque identifier of variant.

attributes: Vec<Attribute>

The attributes associated with the variant.

name: Ident

The name of the variant.

body: ItemVariantBody

The body of the variant.

Trait Implementations

impl Clone for ItemVariant[src]

impl Debug for ItemVariant[src]

impl Eq for ItemVariant[src]

impl Parse for ItemVariant[src]

impl PartialEq<ItemVariant> for ItemVariant[src]

impl Spanned for ItemVariant[src]

impl StructuralEq for ItemVariant[src]

impl StructuralPartialEq for ItemVariant[src]

impl ToTokens for ItemVariant[src]

Auto Trait Implementations

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.