[][src]Struct chalk_ir::ConcreteConst

pub struct ConcreteConst<I: Interner> {
    pub interned: I::InternedConcreteConst,
}

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]

Checks whether two concrete constants are equal.

Trait Implementations

impl<I: Clone + Interner> Clone for ConcreteConst<I> where
    I::InternedConcreteConst: Clone
[src]

impl<I: Copy + Interner> Copy for ConcreteConst<I> where
    I::InternedConcreteConst: Copy
[src]

impl<I: Interner> Debug for ConcreteConst<I>[src]

impl<I: Eq + Interner> Eq for ConcreteConst<I> where
    I::InternedConcreteConst: Eq
[src]

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]

impl<I: Ord + Interner> Ord for ConcreteConst<I> where
    I::InternedConcreteConst: Ord
[src]

impl<I: PartialEq + Interner> PartialEq<ConcreteConst<I>> for ConcreteConst<I> where
    I::InternedConcreteConst: PartialEq
[src]

impl<I: PartialOrd + Interner> PartialOrd<ConcreteConst<I>> for ConcreteConst<I> where
    I::InternedConcreteConst: PartialOrd
[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

impl<I> Send for ConcreteConst<I> where
    <I as Interner>::InternedConcreteConst: Send

impl<I> Sync for ConcreteConst<I> where
    <I as Interner>::InternedConcreteConst: Sync

impl<I> Unpin for ConcreteConst<I> where
    <I as Interner>::InternedConcreteConst: Unpin

impl<I> UnwindSafe for ConcreteConst<I> where
    <I as Interner>::InternedConcreteConst: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Cast for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.