[][src]Enum ra_ap_hir::AssocItem

pub enum AssocItem {
    Function(Function),
    Const(Const),
    TypeAlias(TypeAlias),
}

Invariant: inner.as_assoc_item(db).is_some() We do not actively enforce this invariant.

Variants

Function(Function)
Const(Const)
TypeAlias(TypeAlias)

Implementations

impl AssocItem[src]

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

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

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

Trait Implementations

impl Clone for AssocItem[src]

impl Copy for AssocItem[src]

impl Debug for AssocItem[src]

impl Eq for AssocItem[src]

impl From<AssocItem> for GenericDefId[src]

impl From<AssocItemId> for AssocItem[src]

impl HasVisibility for AssocItem[src]

impl Hash for AssocItem[src]

impl PartialEq<AssocItem> for AssocItem[src]

impl StructuralEq for AssocItem[src]

impl StructuralPartialEq for AssocItem[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.