pub trait ConstParamTy_: StructuralPartialEq + Eq { }🔬This is a nightly-only experimental API. (
unsized_const_params #95174)Expand description
A marker for types which can be used as types of const generic parameters.
These types must have a proper equivalence relation (Eq) and it must be automatically
derived (StructuralPartialEq). There’s a hard-coded check in the compiler ensuring
that all fields are also ConstParamTy, which implies that recursively, all fields
are StructuralPartialEq.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.