Trait DebugDisplay

Source
pub trait DebugDisplay {
    // Required method
    fn to_debug_string(&self) -> String;

    // Provided method
    fn to_debug(&self) -> String { ... }
}

Required Methods§

Source

fn to_debug_string(&self) -> String

use to_string::DebugDisplay;
assert_eq!("12", 12.to_debug_string())

Provided Methods§

Source

fn to_debug(&self) -> String

use to_string::DebugDisplay;
assert_eq!("12", 12.to_debug_string())

Implementors§