pub struct State<Base, OwnerId, Thir, Mir, Binder, Ty> {
pub base: Base,
pub owner_id: OwnerId,
pub thir: Thir,
pub mir: Mir,
pub binder: Binder,
pub ty: Ty,
}Fields§
§base: Base§owner_id: OwnerId§thir: Thir§mir: Mir§binder: Binder§ty: TyImplementations§
Trait Implementations§
Source§impl<Base: Clone, OwnerId: Clone, Thir: Clone, Mir: Clone, Binder: Clone, Ty: Clone> Clone for State<Base, OwnerId, Thir, Mir, Binder, Ty>
impl<Base: Clone, OwnerId: Clone, Thir: Clone, Mir: Clone, Binder: Clone, Ty: Clone> Clone for State<Base, OwnerId, Thir, Mir, Binder, Ty>
Source§impl<'tcx, OwnerId, Thir, Mir, Binder, Ty> HasBase<'tcx> for State<Base<'tcx>, OwnerId, Thir, Mir, Binder, Ty>
impl<'tcx, OwnerId, Thir, Mir, Binder, Ty> HasBase<'tcx> for State<Base<'tcx>, OwnerId, Thir, Mir, Binder, Ty>
Source§impl<'tcx, Base, OwnerId, Thir, Mir, Ty> HasBinder<'tcx> for State<Base, OwnerId, Thir, Mir, UnitBinder<'tcx>, Ty>
impl<'tcx, Base, OwnerId, Thir, Mir, Ty> HasBinder<'tcx> for State<Base, OwnerId, Thir, Mir, UnitBinder<'tcx>, Ty>
fn binder(&self) -> UnitBinder<'tcx>
Source§impl<'tcx, Base, OwnerId, Thir, Binder, Ty> HasMir<'tcx> for State<Base, OwnerId, Thir, RcMir<'tcx>, Binder, Ty>
impl<'tcx, Base, OwnerId, Thir, Binder, Ty> HasMir<'tcx> for State<Base, OwnerId, Thir, RcMir<'tcx>, Binder, Ty>
Source§impl<Base, Thir, Mir, Binder, Ty> HasOwnerId for State<Base, DefId, Thir, Mir, Binder, Ty>
impl<Base, Thir, Mir, Binder, Ty> HasOwnerId for State<Base, DefId, Thir, Mir, Binder, Ty>
Auto Trait Implementations§
impl<Base, OwnerId, Thir, Mir, Binder, Ty> Freeze for State<Base, OwnerId, Thir, Mir, Binder, Ty>
impl<Base, OwnerId, Thir, Mir, Binder, Ty> RefUnwindSafe for State<Base, OwnerId, Thir, Mir, Binder, Ty>where
Base: RefUnwindSafe,
OwnerId: RefUnwindSafe,
Thir: RefUnwindSafe,
Mir: RefUnwindSafe,
Binder: RefUnwindSafe,
Ty: RefUnwindSafe,
impl<Base, OwnerId, Thir, Mir, Binder, Ty> Send for State<Base, OwnerId, Thir, Mir, Binder, Ty>
impl<Base, OwnerId, Thir, Mir, Binder, Ty> Sync for State<Base, OwnerId, Thir, Mir, Binder, Ty>
impl<Base, OwnerId, Thir, Mir, Binder, Ty> Unpin for State<Base, OwnerId, Thir, Mir, Binder, Ty>
impl<Base, OwnerId, Thir, Mir, Binder, Ty> UnwindSafe for State<Base, OwnerId, Thir, Mir, Binder, Ty>where
Base: UnwindSafe,
OwnerId: UnwindSafe,
Thir: UnwindSafe,
Mir: UnwindSafe,
Binder: UnwindSafe,
Ty: UnwindSafe,
Blanket Implementations§
Source§impl<'tcx, T> BaseState<'tcx> for T
impl<'tcx, T> BaseState<'tcx> for T
Source§fn with_owner_id(&self, owner_id: DefId) -> StateWithOwner<'tcx>
fn with_owner_id(&self, owner_id: DefId) -> StateWithOwner<'tcx>
Updates the OnwerId in a state, making sure to override
opt_def_id in base as well.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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'tcx, T> ExprState<'tcx> for Twhere
T: UnderOwnerState<'tcx> + HasThir<'tcx>,
impl<'tcx, T> ExprState<'tcx> for Twhere
T: UnderOwnerState<'tcx> + HasThir<'tcx>,
fn with_ty(&self, ty: Ty<'tcx>) -> StateWithThirAndTy<'tcx>
Source§impl<'tcx, S> HasParamEnv<'tcx> for Swhere
S: UnderOwnerState<'tcx>,
impl<'tcx, S> HasParamEnv<'tcx> for Swhere
S: UnderOwnerState<'tcx>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<'tcx, T> UnderOwnerState<'tcx> for Twhere
T: BaseState<'tcx> + HasOwnerId,
impl<'tcx, T> UnderOwnerState<'tcx> for Twhere
T: BaseState<'tcx> + HasOwnerId,
fn with_base(&self, base: Base<'tcx>) -> StateWithOwner<'tcx>
fn with_binder(&self, binder: UnitBinder<'tcx>) -> StateWithBinder<'tcx>
fn with_thir(&self, thir: RcThir<'tcx>) -> StateWithThir<'tcx>
fn with_mir(&self, mir: RcMir<'tcx>) -> StateWithMir<'tcx>
Source§impl<'tcx, S> WithGlobalCacheExt<'tcx> for Swhere
S: BaseState<'tcx>,
impl<'tcx, S> WithGlobalCacheExt<'tcx> for Swhere
S: BaseState<'tcx>,
Source§fn with_global_cache<T>(&self, f: impl FnOnce(&mut GlobalCache<'tcx>) -> T) -> T
fn with_global_cache<T>(&self, f: impl FnOnce(&mut GlobalCache<'tcx>) -> T) -> T
Access the global cache. You must not call
sinto within this function as this will likely
result in BorrowMut panics.Source§impl<'tcx, S> WithItemCacheExt<'tcx> for Swhere
S: UnderOwnerState<'tcx>,
impl<'tcx, S> WithItemCacheExt<'tcx> for Swhere
S: UnderOwnerState<'tcx>,
Source§fn with_cache<T>(&self, f: impl FnOnce(&mut ItemCache<'tcx>) -> T) -> T
fn with_cache<T>(&self, f: impl FnOnce(&mut ItemCache<'tcx>) -> T) -> T
Access the cache for the current item. You must not call
sinto within this function as
this will likely result in BorrowMut panics.