Struct chalk_ir::ConstData [−][src]
pub struct ConstData<I: Interner> { pub ty: Ty<I>, pub value: ConstValue<I>, }
Expand description
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
Trait Implementations
impl<I: Interner> HasInterner for ConstData<I>
[src]
impl<I: Interner> HasInterner for ConstData<I>
[src]type Interner = I
type Interner = I
The interner associated with the type.
impl<I: Eq + Interner> Eq 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,
<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,
<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,
<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,
<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,
<I as Interner>::InternedConcreteConst: UnwindSafe,
<I as Interner>::InternedType: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Cast for T
[src]
impl<T> Cast for T
[src]fn cast<U>(self, interner: &U::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
[src]
fn cast<U>(self, interner: &U::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
[src]Cast a value to type U
using CastTo
.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more