[−][src]Struct rustc_middle::ty::FieldDef

pub struct FieldDef {
    pub did: DefId,
    pub ident: Ident,
    pub vis: Visibility,
}

Fields

did: DefIdident: Identvis: Visibility

Implementations

impl<'tcx> FieldDef[src]

pub(in ty::inhabitedness) fn uninhabited_from(
    &self,
    tcx: TyCtxt<'tcx>,
    substs: SubstsRef<'tcx>,
    is_enum: bool,
    param_env: ParamEnv<'tcx>
) -> DefIdForest
[src]

Calculates the forest of DefIds from which this field is visibly uninhabited.

impl<'tcx> FieldDef[src]

pub fn ty(&self, tcx: TyCtxt<'tcx>, subst: SubstsRef<'tcx>) -> Ty<'tcx>[src]

Returns the type of this field. The subst is typically obtained via the second field of TyKind::AdtDef.

Trait Implementations

impl Debug for FieldDef[src]

impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for FieldDef[src]

Auto Trait Implementations

impl RefUnwindSafe for FieldDef

impl !Send for FieldDef

impl !Sync for FieldDef

impl Unpin for FieldDef

impl UnwindSafe for FieldDef

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<'a, T> Captures<'a> 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> MaybeResult<T> for T[src]

type Error = !

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.

impl<T> WithConstness for T[src]