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
Provided Methods
fn kilobytes(&self) -> i64
size in kilobytes
fn megabytes(&self) -> i64
size in megabytes
fn gigabytes(&self) -> i64
size in gigabytes
fn terabytes(&self) -> i64
size in terabytes
fn petabytes(&self) -> i64
size in petabytes
fn exabytes(&self) -> i64
size in exabytes
fn capacity(&self) -> String
size as a human readable string