pub trait TruncateCharsExt: AsRef<str> {
// Provided method
fn truncate_chars(&self, max_chars: usize) -> &str { ... }
}Provided Methods§
fn truncate_chars(&self, max_chars: usize) -> &str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".