Struct paralegal_spdg::rustc::mir::DestructuredConstant
source · pub struct DestructuredConstant<'tcx> {
pub variant: Option<VariantIdx>,
pub fields: &'tcx [(ConstValue<'tcx>, Ty<'tcx>)],
}
Expand description
The constituent parts of a mir constant of kind ADT or array.
Fields§
§variant: Option<VariantIdx>
§fields: &'tcx [(ConstValue<'tcx>, Ty<'tcx>)]
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for DestructuredConstant<'tcx>
impl<'tcx> !Send for DestructuredConstant<'tcx>
impl<'tcx> !Sync for DestructuredConstant<'tcx>
impl<'tcx> Unpin for DestructuredConstant<'tcx>
impl<'tcx> !UnwindSafe for DestructuredConstant<'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