pub trait DebugDisplay {
// Required method
fn to_debug_string(&self) -> String;
// Provided method
fn to_debug(&self) -> String { ... }
}
Required Methods§
Sourcefn to_debug_string(&self) -> String
fn to_debug_string(&self) -> String
use to_string::DebugDisplay;
assert_eq!("12", 12.to_debug_string())