Enum ra_ap_hir::VariantDef[][src]

pub enum VariantDef {
    Struct(Struct),
    Union(Union),
    Variant(Variant),
}

Variants

Struct(Struct)
Union(Union)
Variant(Variant)

Implementations

impl VariantDef[src]

pub fn fields(self, db: &dyn HirDatabase) -> Vec<Field>[src]

pub fn module(self, db: &dyn HirDatabase) -> Module[src]

pub fn name(&self, db: &dyn HirDatabase) -> Name[src]

Trait Implementations

impl Clone for VariantDef[src]

impl Copy for VariantDef[src]

impl Debug for VariantDef[src]

impl Eq for VariantDef[src]

impl From<Struct> for VariantDef[src]

impl From<Union> for VariantDef[src]

impl From<Variant> for VariantDef[src]

impl From<VariantDef> for ModuleDef[src]

impl From<VariantId> for VariantDef[src]

impl Hash for VariantDef[src]

impl PartialEq<VariantDef> for VariantDef[src]

impl StructuralEq for VariantDef[src]

impl StructuralPartialEq for VariantDef[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Cast for T

impl<T> CloneAny for T where
    T: Any + Clone

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument 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.