Struct rustc_middle::ty::FieldDef [−][src]
pub struct FieldDef {
pub did: DefId,
pub ident: Ident,
pub vis: Visibility,
}Fields
did: DefIdident: Identvis: VisibilityImplementations
impl<'tcx> FieldDef[src]
impl<'tcx> FieldDef[src]fn uninhabited_from(
&self,
tcx: TyCtxt<'tcx>,
substs: SubstsRef<'tcx>,
is_enum: bool,
param_env: ParamEnv<'tcx>
) -> DefIdForest[src]
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]
impl<'tcx> FieldDef[src]Trait Implementations
impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for FieldDef[src]
impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for FieldDef[src]fn hash_stable(
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher
)[src]
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher
)
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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> MaybeResult<T> for T[src]
impl<T> MaybeResult<T> for T[src]impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,