pub trait ToStringFallible: ToString {
// Required method
fn try_to_string(&self) -> Result<String, TryReserveError>;
}Expand description
ToString, but without panic.
Required Methods§
Sourcefn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.