Trait to_string::BinaryDisplay [] [src]

pub trait BinaryDisplay {
    fn to_binary_string(&self) -> String;

    fn to_bin(&self) -> String { ... }
}

Required Methods

use to_string::BinaryDisplay;
assert_eq!("0b0", 0.to_binary_string())

Provided Methods

use to_string::BinaryDisplay;
assert_eq!("0b0", 0.to_bin())

Implementors