Enum rustc_symbol_mangling::ty::BoundConstness [−][src]
pub enum BoundConstness {
NotConst,
ConstIfConst,
}Variants
NotConst
T: Trait
ConstIfConst
T: ~const Trait
Requires resolving to const only when we are in a const context.
Auto Trait Implementations
impl RefUnwindSafe for BoundConstness
impl Send for BoundConstness
impl Sync for BoundConstness
impl Unpin for BoundConstness
impl UnwindSafe for BoundConstness
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
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: 1 byte
Size for each variant:
NotConst: 0 bytesConstIfConst: 0 bytes