Trait MemoryUnit

Source
pub trait MemoryUnit {
    // Required methods
    fn bytes(self) -> u64;
    fn kb(self) -> u64;
    fn mb(self) -> u64;
    fn gb(self) -> u64;
}
Expand description

Human-readable memory units

Required Methods§

Source

fn bytes(self) -> u64

Source

fn kb(self) -> u64

Source

fn mb(self) -> u64

Source

fn gb(self) -> u64

Implementations on Foreign Types§

Source§

impl MemoryUnit for u64

Source§

fn bytes(self) -> u64

Source§

fn kb(self) -> u64

Source§

fn mb(self) -> u64

Source§

fn gb(self) -> u64

Implementors§