Struct rustc_typeck::check::wfcheck::AdtVariant [−][src]
struct AdtVariant<'tcx> {
fields: Vec<AdtField<'tcx>>,
explicit_discr: Option<LocalDefId>,
}Fields
fields: Vec<AdtField<'tcx>>Expand description
Types of fields in the variant, that must be well-formed.
explicit_discr: Option<LocalDefId>Expand description
Explicit discriminant of this variant (e.g. A = 123),
that must evaluate to a constant value.
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for AdtVariant<'tcx>
impl<'tcx> !Send for AdtVariant<'tcx>
impl<'tcx> !Sync for AdtVariant<'tcx>
impl<'tcx> Unpin for AdtVariant<'tcx>
impl<'tcx> !UnwindSafe for AdtVariant<'tcx>
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> 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,