[][src]Struct chalk_ir::ConstData

pub struct ConstData<I: Interner> {
    pub ty: Ty<I>,
    pub value: ConstValue<I>,
}

Fields

ty: Ty<I>value: ConstValue<I>

Implementations

impl<I: Interner> ConstData<I>[src]

pub fn intern(self, interner: &I) -> Const<I>[src]

Trait Implementations

impl<I: Interner> CastTo<ConstData<I>> for ConstData<I>[src]

impl<I: Clone + Interner> Clone for ConstData<I>[src]

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

impl<I: Eq + Interner> Eq for ConstData<I>[src]

impl<I: Interner> HasInterner for ConstData<I>[src]

type Interner = I

impl<I: Hash + Interner> Hash for ConstData<I>[src]

impl<I: PartialEq + Interner> PartialEq<ConstData<I>> for ConstData<I>[src]

impl<I: Interner> StructuralEq for ConstData<I>[src]

impl<I: Interner> StructuralPartialEq for ConstData<I>[src]

Auto Trait Implementations

impl<I> RefUnwindSafe for ConstData<I> where
    <I as Interner>::InternedConcreteConst: RefUnwindSafe,
    <I as Interner>::InternedType: RefUnwindSafe

impl<I> Send for ConstData<I> where
    <I as Interner>::InternedConcreteConst: Send,
    <I as Interner>::InternedType: Send

impl<I> Sync for ConstData<I> where
    <I as Interner>::InternedConcreteConst: Sync,
    <I as Interner>::InternedType: Sync

impl<I> Unpin for ConstData<I> where
    <I as Interner>::InternedConcreteConst: Unpin,
    <I as Interner>::InternedType: Unpin

impl<I> UnwindSafe for ConstData<I> where
    <I as Interner>::InternedConcreteConst: UnwindSafe,
    <I as Interner>::InternedType: 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.