Trait scale_info::prelude::string::ToString
1.0.0 · source · pub trait ToString {
// Required method
fn to_string(&self) -> String;
}
Expand description
Required Methods§
Implementors§
impl ToString for Cow<'_, str>
impl ToString for AsciiChar
impl ToString for bool
impl ToString for char
impl ToString for i8
impl ToString for str
impl ToString for u8
impl ToString for Arguments<'_>
impl ToString for String
impl<T> ToString for Twhere T: Display + ?Sized,
Panics
In this implementation, the to_string
method panics
if the Display
implementation returns an error.
This indicates an incorrect Display
implementation
since fmt::Write for String
never returns an error itself.