Module humansize::file_size_opts[][src]

Expand description

Describes the struct that holds the options needed by the file_size method. The three most common formats are provided as constants to be used easily

Structs

FileSizeOpts

Holds the options for the file_size method.

Enums

FixedAt

Forces a certain representation of the resulting file size.

Kilo

Holds the standard to use when displying the size.

Constants

BINARY

Options to display sizes in the binary format.

CONVENTIONAL

Options to display sizes in the “conventional” format. This 1024 as the value of the Kilo, but displays decimal-style units (KB, not KiB).

DECIMAL

Options to display sizes in the decimal format.