gstreamer::format

Trait BytesFormatConstructor

Source
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§