pub trait MaxLength {
const MAX_LENGTH: StrLength;
}Expand description
Type that has a known upper boundary for the formatted length.
Required Associated Constants§
Sourceconst MAX_LENGTH: StrLength
const MAX_LENGTH: StrLength
Upper boundary for the formatted length in bytes and chars.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".