pub trait BytesFormatConstructor {
    // Required methods
    fn bytes(self) -> Bytes;
    fn kibibytes(self) -> Bytes;
    fn mebibytes(self) -> Bytes;
    fn gibibytes(self) -> Bytes;
}
Expand description

Bytes formatted value constructor trait.

These constructors use the unambiguous conventions for byte units.

Required Methods§

source

fn bytes(self) -> Bytes

Builds a Bytes formatted value from self.

source

fn kibibytes(self) -> Bytes

Builds a Bytes formatted value from self interpreted as kibibytes (1024).

source

fn mebibytes(self) -> Bytes

Builds a Bytes formatted value from self interpreted as mebibytes (1024²).

source

fn gibibytes(self) -> Bytes

Builds a Bytes formatted value from self interpreted as gibibytes (1024³).

Implementations on Foreign Types§

source§

impl BytesFormatConstructor for u64

Implementors§