pub struct State<Base, Thir, Mir, OwnerId, Binder> {
pub base: Base,
pub thir: Thir,
pub mir: Mir,
pub owner_id: OwnerId,
pub binder: Binder,
}
Fields§
§base: Base
§thir: Thir
§mir: Mir
§owner_id: OwnerId
§binder: Binder
Implementations§
source§impl<'tcx> State<Base<'tcx>, (), (), DefId, ()>
impl<'tcx> State<Base<'tcx>, (), (), DefId, ()>
pub fn new_from_state_and_id<S: BaseState<'tcx>>(s: &S, id: DefId) -> Self
Trait Implementations§
source§impl<Base: Clone, Thir: Clone, Mir: Clone, OwnerId: Clone, Binder: Clone> Clone for State<Base, Thir, Mir, OwnerId, Binder>
impl<Base: Clone, Thir: Clone, Mir: Clone, OwnerId: Clone, Binder: Clone> Clone for State<Base, Thir, Mir, OwnerId, Binder>
source§impl<'tcx, Thir, Mir, OwnerId, Binder> HasBase<'tcx> for State<Base<'tcx>, Thir, Mir, OwnerId, Binder>
impl<'tcx, Thir, Mir, OwnerId, Binder> HasBase<'tcx> for State<Base<'tcx>, Thir, Mir, OwnerId, Binder>
source§impl<'tcx, Base, Thir, Mir, OwnerId, Binder> HasBaseSetter<'tcx> for State<Base, Thir, Mir, OwnerId, Binder>
impl<'tcx, Base, Thir, Mir, OwnerId, Binder> HasBaseSetter<'tcx> for State<Base, Thir, Mir, OwnerId, Binder>
source§impl<'tcx, Base, Thir, Mir, OwnerId> HasBinder<'tcx> for State<Base, Thir, Mir, OwnerId, UnitBinder<'tcx>>
impl<'tcx, Base, Thir, Mir, OwnerId> HasBinder<'tcx> for State<Base, Thir, Mir, OwnerId, UnitBinder<'tcx>>
fn binder(&self) -> UnitBinder<'tcx>
source§impl<'tcx, Base, Thir, Mir, OwnerId, Binder> HasBinderSetter<'tcx> for State<Base, Thir, Mir, OwnerId, Binder>
impl<'tcx, Base, Thir, Mir, OwnerId, Binder> HasBinderSetter<'tcx> for State<Base, Thir, Mir, OwnerId, Binder>
source§impl<'tcx, Base, Thir, OwnerId, Binder> HasMir<'tcx> for State<Base, Thir, RcMir<'tcx>, OwnerId, Binder>
impl<'tcx, Base, Thir, OwnerId, Binder> HasMir<'tcx> for State<Base, Thir, RcMir<'tcx>, OwnerId, Binder>
source§impl<'tcx, Base, Thir, Mir, OwnerId, Binder> HasMirSetter<'tcx> for State<Base, Thir, Mir, OwnerId, Binder>
impl<'tcx, Base, Thir, Mir, OwnerId, Binder> HasMirSetter<'tcx> for State<Base, Thir, Mir, OwnerId, Binder>
source§impl<Base, Thir, Mir, Binder> HasOwnerId for State<Base, Thir, Mir, DefId, Binder>
impl<Base, Thir, Mir, Binder> HasOwnerId for State<Base, Thir, Mir, DefId, Binder>
source§impl<Base, Thir, Mir, OwnerId, Binder> HasOwnerIdSetter for State<Base, Thir, Mir, OwnerId, Binder>
impl<Base, Thir, Mir, OwnerId, Binder> HasOwnerIdSetter for State<Base, Thir, Mir, OwnerId, Binder>
Auto Trait Implementations§
impl<Base, Thir, Mir, OwnerId, Binder> Freeze for State<Base, Thir, Mir, OwnerId, Binder>
impl<Base, Thir, Mir, OwnerId, Binder> RefUnwindSafe for State<Base, Thir, Mir, OwnerId, Binder>where
Base: RefUnwindSafe,
Thir: RefUnwindSafe,
Mir: RefUnwindSafe,
OwnerId: RefUnwindSafe,
Binder: RefUnwindSafe,
impl<Base, Thir, Mir, OwnerId, Binder> Send for State<Base, Thir, Mir, OwnerId, Binder>
impl<Base, Thir, Mir, OwnerId, Binder> Sync for State<Base, Thir, Mir, OwnerId, Binder>
impl<Base, Thir, Mir, OwnerId, Binder> Unpin for State<Base, Thir, Mir, OwnerId, Binder>
impl<Base, Thir, Mir, OwnerId, Binder> UnwindSafe for State<Base, Thir, Mir, OwnerId, Binder>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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<P> IntoQueryParam<P> for P
impl<P> IntoQueryParam<P> for P
fn into_query_param(self) -> P
source§impl<'tcx, S> ParamEnv<'tcx> for Swhere
S: UnderOwnerState<'tcx>,
impl<'tcx, S> ParamEnv<'tcx> for Swhere
S: UnderOwnerState<'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.