[][src]Struct ra_ap_hir::Field

pub struct Field { /* fields omitted */ }

Implementations

impl Field[src]

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

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

Returns the type as in the signature of the struct (i.e., with placeholder types for type parameters). This is good for showing signature help, but not so good to actually get the type of the field when you actually have a variable of the struct.

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

Trait Implementations

impl Clone for Field[src]

impl Copy for Field[src]

impl Debug for Field[src]

impl Eq for Field[src]

impl From<Field> for FieldId[src]

impl From<FieldId> for Field[src]

impl HasAttrs for Field[src]

impl HasSource for Field[src]

type Ast = FieldSource

impl HasVisibility for Field[src]

impl Hash for Field[src]

impl PartialEq<Field> for Field[src]

impl StructuralEq for Field[src]

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