Enum paralegal_spdg::rustc::mir::ConstantKind
source · pub enum ConstantKind<'tcx> {
Ty(Const<'tcx>),
Unevaluated(UnevaluatedConst<'tcx>, Ty<'tcx>),
Val(ConstValue<'tcx>, Ty<'tcx>),
}
Variants§
Ty(Const<'tcx>)
This constant came from the type system
Unevaluated(UnevaluatedConst<'tcx>, Ty<'tcx>)
An unevaluated mir constant which is not part of the type system.
Val(ConstValue<'tcx>, Ty<'tcx>)
This constant cannot go back into the type system, as it represents something the type system cannot handle (e.g. pointers).
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for ConstantKind<'tcx>
impl<'tcx> !Send for ConstantKind<'tcx>
impl<'tcx> !Sync for ConstantKind<'tcx>
impl<'tcx> Unpin for ConstantKind<'tcx>
impl<'tcx> !UnwindSafe for ConstantKind<'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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.