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§
source§impl<I: Interner> HasInterner for ConstData<I>
impl<I: Interner> HasInterner for ConstData<I>
source§impl<I: PartialEq + Interner> PartialEq for ConstData<I>
impl<I: PartialEq + Interner> PartialEq for ConstData<I>
impl<I: Eq + Interner> Eq for ConstData<I>
impl<I: Interner> StructuralPartialEq for ConstData<I>
Auto Trait Implementations§
impl<I> Freeze for ConstData<I>
impl<I> RefUnwindSafe for ConstData<I>where
<I as Interner>::InternedType: RefUnwindSafe,
<I as Interner>::InternedConcreteConst: RefUnwindSafe,
impl<I> Send for ConstData<I>
impl<I> Sync for ConstData<I>
impl<I> Unpin for ConstData<I>
impl<I> UnwindSafe for ConstData<I>where
<I as Interner>::InternedType: UnwindSafe,
<I as Interner>::InternedConcreteConst: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)