pub struct PlaceTy<'tcx> {
pub ty: Ty<'tcx>,
pub variant_index: Option<VariantIdx>,
}
Fields§
§ty: Ty<'tcx>
§variant_index: Option<VariantIdx>
Downcast to a particular variant of an enum or a generator, if included.
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for PlaceTy<'tcx>
impl<'tcx> !Send for PlaceTy<'tcx>
impl<'tcx> !Sync for PlaceTy<'tcx>
impl<'tcx> Unpin for PlaceTy<'tcx>
impl<'tcx> !UnwindSafe for PlaceTy<'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