pub trait Constr {
const STR: &'static str;
}Expand description
Constant string “type”.
To get around the lack of constant string generics, we use types that implement this trait to provide generic strings instead.
To easily construct zero-sized types which implement this trait, see constr!.
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.