Trait OctalDisplay

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

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

Required Methods§

Source

fn to_octal_string(&self) -> String

use to_string::OctalDisplay;
assert_eq!("0o12", 0o12.to_octal_string())

Provided Methods§

Source

fn to_octal(&self) -> String

use to_string::OctalDisplay;
assert_eq!("0o12", 0o12.to_octal())

Implementors§