Crate byte_unit[][src]

Byte Unit

A library for interaction with units of bytes.

Macros

n_gb_bytes

Convert n GB to bytes.

n_gib_bytes

Convert n GiB to bytes.

n_kb_bytes

Convert n KB to bytes.

n_kib_bytes

Convert n KiB to bytes.

n_mb_bytes

Convert n MB to bytes.

n_mib_bytes

Convert n MiB to bytes.

n_pb_bytes

Convert n PB to bytes.

n_pib_bytes

Convert n PiB to bytes.

n_tb_bytes

Convert n TB to bytes.

n_tib_bytes

Convert n TiB to bytes.

Structs

AdjustedByte

Generated from the get_appropriate_unit and get_adjusted_unit methods of a Byte object.

Byte

Represent the n-bytes data. Use associated functions: from_unit, from_bytes, from_string, to create the instance.

Enums

ByteError

Different error types for Byte.

ByteUnit

The unit of bytes.