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§impl Serialize for TyConstKind
impl Serialize for TyConstKind
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,
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