pub trait StabilityType {
const VALUE: Stability;
}
Expand description
Same as Stability
, but in the form of a trait. Used when the stability should be encoded in
the type.
When/if the adt_const_params
Rust feature is stabilized, this could be replace by using
Stability
directly with const generics.
Required Associated Constants§
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.