pub trait Truncated {
// Required method
fn truncated<const N: u32>(&self) -> BoundedString<N>;
}Required Methods§
Sourcefn truncated<const N: u32>(&self) -> BoundedString<N>
fn truncated<const N: u32>(&self) -> BoundedString<N>
Convert self to a BoundedString, truncating if necessary. In the case of truncation,
the discarded characters are replaced by “…”.
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.