pub struct ClosureOutlivesSubjectTy<'tcx> {
inner: Ty<'tcx>,
}Expand description
Represents a ty::Ty for use in ClosureOutlivesSubject.
This abstraction is necessary because the type may include ReVar regions,
which is what we use internally within NLL code, and they can’t be used in
a query response.
DO NOT implement TypeVisitable or TypeFoldable traits, because this
type is not recognized as a binder for late-bound region.
Fields§
§inner: Ty<'tcx>Auto Trait Implementations§
impl<'tcx> Freeze for ClosureOutlivesSubjectTy<'tcx>
impl<'tcx> !RefUnwindSafe for ClosureOutlivesSubjectTy<'tcx>
impl<'tcx> Send for ClosureOutlivesSubjectTy<'tcx>
impl<'tcx> Sync for ClosureOutlivesSubjectTy<'tcx>
impl<'tcx> Unpin for ClosureOutlivesSubjectTy<'tcx>
impl<'tcx> !UnwindSafe for ClosureOutlivesSubjectTy<'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