[][src]Struct ra_ap_hir::Variant

pub struct Variant { /* fields omitted */ }

Implementations

impl Variant[src]

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

pub fn parent_enum(self, _db: &dyn HirDatabase) -> Enum[src]

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

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

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

Trait Implementations

impl Clone for Variant[src]

impl Copy for Variant[src]

impl Debug for Variant[src]

impl Eq for Variant[src]

impl From<EnumVariantId> for Variant[src]

impl From<Variant> for EnumVariantId[src]

impl From<Variant> for ModuleDef[src]

impl From<Variant> for VariantDef[src]

impl From<Variant> for GenericDef[src]

impl HasAttrs for Variant[src]

impl HasSource for Variant[src]

type Ast = Variant

impl Hash for Variant[src]

impl PartialEq<Variant> for Variant[src]

impl StructuralEq for Variant[src]

impl StructuralPartialEq for Variant[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: Clone + Any

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.