[−][src]Struct rustc_middle::ty::query::queries::eval_to_const_value_raw
Fields
data: PhantomData<&'tcx ()>Trait Implementations
impl<'tcx> QueryAccessors<TyCtxt<'tcx>> for eval_to_const_value_raw<'tcx>[src]
pub const ANON: bool[src]
pub const EVAL_ALWAYS: bool[src]
pub const DEP_KIND: DepKind[src]
type Cache = <<ParamEnvAnd<'tcx, GlobalId<'tcx>> as Key>::CacheSelector as CacheSelector<ParamEnvAnd<'tcx, GlobalId<'tcx>>, EvalToConstValueResult<'tcx>>>::Cache
pub fn query_state<'a>(
tcx: TyCtxt<'tcx>
) -> &'a QueryState<DepKind, <TyCtxt<'tcx> as QueryContext>::Query, Self::Cache>[src]
tcx: TyCtxt<'tcx>
) -> &'a QueryState<DepKind, <TyCtxt<'tcx> as QueryContext>::Query, Self::Cache>
pub fn compute(tcx: TyCtxt<'tcx>, key: Self::Key) -> Self::Value[src]
pub fn hash_result(
_hcx: &mut StableHashingContext<'_>,
_result: &Self::Value
) -> Option<Fingerprint>[src]
_hcx: &mut StableHashingContext<'_>,
_result: &Self::Value
) -> Option<Fingerprint>
pub fn handle_cycle_error(
tcx: TyCtxt<'tcx>,
error: CycleError<Query<'tcx>>
) -> Self::Value[src]
tcx: TyCtxt<'tcx>,
error: CycleError<Query<'tcx>>
) -> Self::Value
pub fn to_dep_node(
tcx: CTX,
key: &Self::Key
) -> DepNode<<CTX as DepContext>::DepKind> where
Self::Key: DepNodeParams<CTX>, [src]
tcx: CTX,
key: &Self::Key
) -> DepNode<<CTX as DepContext>::DepKind> where
Self::Key: DepNodeParams<CTX>,
impl<'tcx> QueryConfig for eval_to_const_value_raw<'tcx>[src]
type Key = ParamEnvAnd<'tcx, GlobalId<'tcx>>
type Value = EvalToConstValueResult<'tcx>
type Stored = <<<ParamEnvAnd<'tcx, GlobalId<'tcx>> as Key>::CacheSelector as CacheSelector<ParamEnvAnd<'tcx, GlobalId<'tcx>>, EvalToConstValueResult<'tcx>>>::Cache as QueryStorage>::Stored
pub const NAME: &'static str[src]
impl<'tcx> QueryDescription<TyCtxt<'tcx>> for eval_to_const_value_raw<'tcx>[src]
pub fn describe(
tcx: TyCtxt<'tcx>,
key: ParamEnvAnd<'tcx, GlobalId<'tcx>>
) -> Cow<'static, str>[src]
tcx: TyCtxt<'tcx>,
key: ParamEnvAnd<'tcx, GlobalId<'tcx>>
) -> Cow<'static, str>
pub fn cache_on_disk(
_: TyCtxt<'tcx>,
key: &Self::Key,
_: Option<&Self::Value>
) -> bool[src]
_: TyCtxt<'tcx>,
key: &Self::Key,
_: Option<&Self::Value>
) -> bool
pub fn try_load_from_disk(
tcx: TyCtxt<'tcx>,
id: SerializedDepNodeIndex
) -> Option<Self::Value>[src]
tcx: TyCtxt<'tcx>,
id: SerializedDepNodeIndex
) -> Option<Self::Value>
Auto Trait Implementations
impl<'tcx> RefUnwindSafe for eval_to_const_value_raw<'tcx>
impl<'tcx> Send for eval_to_const_value_raw<'tcx>
impl<'tcx> Sync for eval_to_const_value_raw<'tcx>
impl<'tcx> Unpin for eval_to_const_value_raw<'tcx>
impl<'tcx> UnwindSafe for eval_to_const_value_raw<'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> MaybeResult<T> for T[src]
type Error = !
pub fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T[src]
pub fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.