Type Definition rustc_middle::ty::CanonicalUserType
source · Expand description
Canonicalized user type annotation.
Implementations§
source§impl<'tcx> CanonicalUserType<'tcx>
impl<'tcx> CanonicalUserType<'tcx>
sourcepub fn is_identity(&self) -> bool
pub fn is_identity(&self) -> bool
Returns true
if this represents a substitution of the form [?0, ?1, ?2]
,
i.e., each thing is mapped to a canonical variable with the same index.
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: 48 bytes