pub trait ToString {
// Required method
fn to_string(&self) -> String;
}Expand description
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl ToString for Address
impl<T> ToString for T
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.