Skip to main content

StateWithOwner

Type Alias StateWithOwner 

Source
pub type StateWithOwner<'tcx> = State<'tcx, DefId>;

Aliased Type§

pub struct StateWithOwner<'tcx> {
    pub base: Base<'tcx>,
    pub owner: DefId,
}

Fields§

§base: Base<'tcx>§owner: DefId

Trait Implementations§

Source§

impl<'tcx> UnderOwnerState<'tcx> for StateWithOwner<'tcx>

Source§

fn owner(&self) -> DefId

Source§

fn param_env(&self) -> ParamEnv<'tcx>

Source§

fn typing_env(&self) -> TypingEnv<'tcx>

Source§

fn as_state_with_owner(&self) -> StateWithOwner<'tcx>

Source§

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.
Source§

fn with_predicate_searcher<T>( &self, f: impl FnOnce(&mut PredicateSearcher<'tcx>, &StateWithBase<'tcx>) -> T, ) -> T