Trait no_std_compat2::string::ToString
1.0.0 · source · pub trait ToString {
// Required method
fn to_string(&self) -> String;
}Available on non-crate feature
std only.Expand description
Required Methods§
Implementors§
impl ToString for AsciiChar
Available on non-
no_global_oom_handling only.impl ToString for Cow<'_, str>
Available on non-
no_global_oom_handling only.impl ToString for bool
Available on non-
no_global_oom_handling only.impl ToString for char
Available on non-
no_global_oom_handling only.impl ToString for i8
Available on non-
no_global_oom_handling only.impl ToString for str
Available on non-
no_global_oom_handling only.impl ToString for u8
Available on non-
no_global_oom_handling only.impl ToString for Arguments<'_>
Available on non-
no_global_oom_handling only.impl ToString for String
Available on non-
no_global_oom_handling only.impl<T> ToString for Twhere T: Display + ?Sized,
Available on non-
no_global_oom_handling only.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.