Enum paralegal_spdg::rustc::mir::AggregateKind
source · pub enum AggregateKind<'tcx> {
Array(Ty<'tcx>),
Tuple,
Adt(DefId, VariantIdx, &'tcx List<GenericArg<'tcx>>, Option<UserTypeAnnotationIndex>, Option<FieldIdx>),
Closure(DefId, &'tcx List<GenericArg<'tcx>>),
Generator(DefId, &'tcx List<GenericArg<'tcx>>, Movability),
}
Variants§
Array(Ty<'tcx>)
The type is of the element
Tuple
Adt(DefId, VariantIdx, &'tcx List<GenericArg<'tcx>>, Option<UserTypeAnnotationIndex>, Option<FieldIdx>)
The second field is the variant index. It’s equal to 0 for struct
and union expressions. The last field is the
active field number and is present only for union expressions
– e.g., for a union expression SomeUnion { c: .. }
, the
active field index would identity the field c
Closure(DefId, &'tcx List<GenericArg<'tcx>>)
Generator(DefId, &'tcx List<GenericArg<'tcx>>, Movability)
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for AggregateKind<'tcx>
impl<'tcx> !Send for AggregateKind<'tcx>
impl<'tcx> !Sync for AggregateKind<'tcx>
impl<'tcx> Unpin for AggregateKind<'tcx>
impl<'tcx> !UnwindSafe for AggregateKind<'tcx>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.