[−][src]Struct chalk_ir::ConstData
Constant data, containing the constant's type and value.
Fields
ty: Ty<I>
Type that holds the constant.
value: ConstValue<I>
The value of the constant.
Implementations
impl<I: Interner> ConstData<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
The interner associated with the type.
impl<I: Hash + Interner> Hash for ConstData<I>
[src]
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: PartialEq + Interner> PartialEq<ConstData<I>> for ConstData<I>
[src]
pub fn eq(&self, other: &ConstData<I>) -> bool
[src]
pub fn ne(&self, other: &ConstData<I>) -> bool
[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,
[src]
<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,
[src]
<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,
[src]
<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,
[src]
<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,
[src]
<I as Interner>::InternedConcreteConst: UnwindSafe,
<I as Interner>::InternedType: 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>,