Trait capsize::Capacity [] [src]

pub trait Capacity {
    fn bytes(&self) -> i64;

    fn kilobytes(&self) -> i64 { ... }
    fn megabytes(&self) -> i64 { ... }
    fn gigabytes(&self) -> i64 { ... }
    fn terabytes(&self) -> i64 { ... }
    fn petabytes(&self) -> i64 { ... }
    fn exabytes(&self) -> i64 { ... }
    fn capacity(&self) -> String { ... }
}

Capacity provides a simple way to convert values to corresponding units of capacity

Required Methods

size in bytes

Provided Methods

size in kilobytes

size in megabytes

size in gigabytes

size in terabytes

size in petabytes

size in exabytes

size as a human readable string

Implementors