Skip to main content

Const

Type Alias Const 

Source
pub type Const<'tcx> = Const<TyCtxt<'tcx>>;

Aliased Type§

pub struct Const<'tcx>(pub Interned<'tcx, WithCachedTypeInfo<ConstKind<TyCtxt<'tcx>>>>);

Tuple Fields§

§0: Interned<'tcx, WithCachedTypeInfo<ConstKind<TyCtxt<'tcx>>>>

Trait Implementations§

Source§

impl Erasable for Const<'_>

Source§

type Storage = [u8; 8]

Storage type to used for erased values of this type. Should be [u8; N], where N is equal to size_of::<Self>. Read more
Source§

impl<'tcx, P: Printer<'tcx>> Print<P> for Const<'tcx>

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: 8 bytes