StringExt

Trait StringExt 

Source
pub trait StringExt {
    // Required methods
    fn to_exact_size<const N: usize>(self) -> Option<ExactSizeString<N>>;
    fn to_max_size<const N: usize>(self) -> Option<MaxSizeString<N>>;
}

Required Methods§

Source

fn to_exact_size<const N: usize>(self) -> Option<ExactSizeString<N>>

Source

fn to_max_size<const N: usize>(self) -> Option<MaxSizeString<N>>

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 StringExt for &str

Implementors§