pub enum ConstValue<I: Interner> {
BoundVar(BoundVar),
InferenceVar(InferenceVar),
Placeholder(PlaceholderIndex),
Concrete(ConcreteConst<I>),
}Expand description
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§
Source§impl<I: Clone + Interner> Clone for ConstValue<I>
impl<I: Clone + Interner> Clone for ConstValue<I>
Source§fn clone(&self) -> ConstValue<I>
fn clone(&self) -> ConstValue<I>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<I: Interner> HasInterner for ConstValue<I>
impl<I: Interner> HasInterner for ConstValue<I>
impl<I: Interner> Copy for ConstValue<I>where
I::InternedConcreteConst: Copy,
impl<I: Eq + Interner> Eq for ConstValue<I>
impl<I: Interner> StructuralPartialEq for ConstValue<I>
Auto Trait Implementations§
impl<I> Freeze for ConstValue<I>
impl<I> RefUnwindSafe for ConstValue<I>
impl<I> Send for ConstValue<I>
impl<I> Sync for ConstValue<I>
impl<I> Unpin for ConstValue<I>
impl<I> UnwindSafe for ConstValue<I>
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