pub trait OctalDisplay {
// Required method
fn to_octal_string(&self) -> String;
// Provided method
fn to_octal(&self) -> String { ... }
}
Required Methods§
Sourcefn to_octal_string(&self) -> String
fn to_octal_string(&self) -> String
use to_string::OctalDisplay;
assert_eq!("0o12", 0o12.to_octal_string())