[−][src]Enum chalk_ir::ConstValue
A constant value, not necessarily concrete.
Variants
BoundVar(BoundVar)
Bound var (e.g. a parameter).
InferenceVar(InferenceVar)
Constant whose value is being inferred.
Placeholder(PlaceholderIndex)
Lifetime on some yet-unknown placeholder.
Concrete(ConcreteConst<I>)
Concrete constant value.
Trait Implementations
impl<I: Clone + Interner> Clone for ConstValue<I>
[src]
fn clone(&self) -> ConstValue<I>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<I: Interner> Copy for ConstValue<I> where
I::InternedConcreteConst: Copy,
[src]
I::InternedConcreteConst: Copy,
impl<I: Eq + Interner> Eq for ConstValue<I>
[src]
impl<I: Interner> HasInterner for ConstValue<I>
[src]
type Interner = I
The interner associated with the type.
impl<I: Hash + Interner> Hash for ConstValue<I>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<I: PartialEq + Interner> PartialEq<ConstValue<I>> for ConstValue<I>
[src]
fn eq(&self, other: &ConstValue<I>) -> bool
[src]
fn ne(&self, other: &ConstValue<I>) -> bool
[src]
impl<I: Interner> StructuralEq for ConstValue<I>
[src]
impl<I: Interner> StructuralPartialEq for ConstValue<I>
[src]
Auto Trait Implementations
impl<I> RefUnwindSafe for ConstValue<I> where
<I as Interner>::InternedConcreteConst: RefUnwindSafe,
<I as Interner>::InternedConcreteConst: RefUnwindSafe,
impl<I> Send for ConstValue<I> where
<I as Interner>::InternedConcreteConst: Send,
<I as Interner>::InternedConcreteConst: Send,
impl<I> Sync for ConstValue<I> where
<I as Interner>::InternedConcreteConst: Sync,
<I as Interner>::InternedConcreteConst: Sync,
impl<I> Unpin for ConstValue<I> where
<I as Interner>::InternedConcreteConst: Unpin,
<I as Interner>::InternedConcreteConst: Unpin,
impl<I> UnwindSafe for ConstValue<I> where
<I as Interner>::InternedConcreteConst: UnwindSafe,
<I as Interner>::InternedConcreteConst: UnwindSafe,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Cast for T
[src]
fn cast<U>(self, interner: &U::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
[src]
Self: CastTo<U>,
U: HasInterner,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[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.
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>,