Module humansize::file_size_opts [] [src]

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 to be passed to 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 uses multiples of 1024 to calculate the scale, but displays decimal units (KB, not KiB).

DECIMAL

Options to display sizes in the decimal format.