Enum stable_mir::ty::TyConstKind
source · pub enum TyConstKind {
Param(ParamConst),
Bound(u32, u32),
Unevaluated(ConstDef, GenericArgs),
Value(Ty, Allocation),
ZSTValue(Ty),
}
Variants§
Param(ParamConst)
Bound(u32, u32)
Unevaluated(ConstDef, GenericArgs)
Value(Ty, Allocation)
ZSTValue(Ty)
Trait Implementations§
source§impl Clone for TyConstKind
impl Clone for TyConstKind
source§fn clone(&self) -> TyConstKind
fn clone(&self) -> TyConstKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TyConstKind
impl Debug for TyConstKind
source§impl PartialEq for TyConstKind
impl PartialEq for TyConstKind
source§fn eq(&self, other: &TyConstKind) -> bool
fn eq(&self, other: &TyConstKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TyConstKind
impl StructuralPartialEq for TyConstKind
Auto Trait Implementations§
impl Freeze for TyConstKind
impl RefUnwindSafe for TyConstKind
impl Send for TyConstKind
impl Sync for TyConstKind
impl Unpin for TyConstKind
impl UnwindSafe for TyConstKind
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
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes
Size for each variant:
Param
: 40 bytesBound
: 16 bytesUnevaluated
: 40 bytesValue
: 72 bytesZSTValue
: 16 bytes