Trait ToString

Source
pub trait ToString {
    // Required method
    fn to_string<const N: usize>(&self) -> String<N>;
}

Required Methods§

Source

fn to_string<const N: usize>(&self) -> String<N>

convert a type to a String

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 for T
where T: Display,