Truncated

Trait Truncated 

Source
pub trait Truncated {
    // Required method
    fn truncated<const N: u32>(&self) -> BoundedString<N>;
}

Required Methods§

Source

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.

Implementors§

Source§

impl<T: ToString + ?Sized> Truncated for T