[−][src]Struct chalk_ir::ConcreteConst
Concrete constant, whose value is known (as opposed to inferred constants and placeholders).
Fields
interned: I::InternedConcreteConst
The interned constant.
Implementations
impl<I: Interner> ConcreteConst<I>
[src]
pub fn const_eq(
&self,
ty: &Ty<I>,
other: &ConcreteConst<I>,
interner: &I
) -> bool
[src]
&self,
ty: &Ty<I>,
other: &ConcreteConst<I>,
interner: &I
) -> bool
Checks whether two concrete constants are equal.
Trait Implementations
impl<I: Clone + Interner> Clone for ConcreteConst<I> where
I::InternedConcreteConst: Clone,
[src]
I::InternedConcreteConst: Clone,
pub fn clone(&self) -> ConcreteConst<I>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<I: Copy + Interner> Copy for ConcreteConst<I> where
I::InternedConcreteConst: Copy,
[src]
I::InternedConcreteConst: Copy,
impl<I: Interner> Debug for ConcreteConst<I>
[src]
impl<I: Eq + Interner> Eq for ConcreteConst<I> where
I::InternedConcreteConst: Eq,
[src]
I::InternedConcreteConst: Eq,
impl<I: Interner> HasInterner for ConcreteConst<I>
[src]
type Interner = I
The interner associated with the type.
impl<I: Hash + Interner> Hash for ConcreteConst<I> where
I::InternedConcreteConst: Hash,
[src]
I::InternedConcreteConst: Hash,
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<I: Ord + Interner> Ord for ConcreteConst<I> where
I::InternedConcreteConst: Ord,
[src]
I::InternedConcreteConst: Ord,
pub fn cmp(&self, other: &ConcreteConst<I>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<I: PartialEq + Interner> PartialEq<ConcreteConst<I>> for ConcreteConst<I> where
I::InternedConcreteConst: PartialEq,
[src]
I::InternedConcreteConst: PartialEq,
pub fn eq(&self, other: &ConcreteConst<I>) -> bool
[src]
pub fn ne(&self, other: &ConcreteConst<I>) -> bool
[src]
impl<I: PartialOrd + Interner> PartialOrd<ConcreteConst<I>> for ConcreteConst<I> where
I::InternedConcreteConst: PartialOrd,
[src]
I::InternedConcreteConst: PartialOrd,
pub fn partial_cmp(&self, other: &ConcreteConst<I>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &ConcreteConst<I>) -> bool
[src]
pub fn le(&self, other: &ConcreteConst<I>) -> bool
[src]
pub fn gt(&self, other: &ConcreteConst<I>) -> bool
[src]
pub fn ge(&self, other: &ConcreteConst<I>) -> bool
[src]
impl<I: Interner> StructuralEq for ConcreteConst<I>
[src]
impl<I: Interner> StructuralPartialEq for ConcreteConst<I>
[src]
Auto Trait Implementations
impl<I> RefUnwindSafe for ConcreteConst<I> where
<I as Interner>::InternedConcreteConst: RefUnwindSafe,
[src]
<I as Interner>::InternedConcreteConst: RefUnwindSafe,
impl<I> Send for ConcreteConst<I> where
<I as Interner>::InternedConcreteConst: Send,
[src]
<I as Interner>::InternedConcreteConst: Send,
impl<I> Sync for ConcreteConst<I> where
<I as Interner>::InternedConcreteConst: Sync,
[src]
<I as Interner>::InternedConcreteConst: Sync,
impl<I> Unpin for ConcreteConst<I> where
<I as Interner>::InternedConcreteConst: Unpin,
[src]
<I as Interner>::InternedConcreteConst: Unpin,
impl<I> UnwindSafe for ConcreteConst<I> where
<I as Interner>::InternedConcreteConst: UnwindSafe,
[src]
<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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Cast for T
[src]
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
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>,