IntoTruncated

Trait IntoTruncated 

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

Required Methods§

Source

fn into_truncated<const N: u32>(self) -> BoundedString<N>

Convert self into 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.

Implementations on Foreign Types§

Source§

impl IntoTruncated for String

Source§

fn into_truncated<const N: u32>(self) -> BoundedString<N>

Implementors§