Crate kib

Source
Expand description

§KiB

§Project

  • License: GNU Lesser General Public License, either version 3, or (at your option) any later version.
  • This project follows Semantic Versioning 2.0.0

§Features

This crate helps format bytes to KiB, MiB…

§Notes

Documentation is built with all features. Some of them are optional. If you see components from other crates, you can view source to see what features are required.

Modules§

version_info
7.1.0 (June 10th, 2024)

Structs§

Bytes
Bytes

Enums§

Int
A wrapper for integers
Unit
Unit

Constants§

CODE_NAME
Crate code name
EIB
One EiB in bytes.
GIB
One GiB in bytes.
ID
ID of this crate
KIB
One KiB in bytes.
MIB
One MiB in bytes.
NAME
Crate name
PIB
One PiB in bytes.
RELEASE_DATE
Crate release date (year/month/day)
TAG
Tag, which can be used for logging…
TIB
One TiB in bytes.
VERSION
Crate version
YIB
One YiB in bytes.
ZIB
One ZiB in bytes.

Functions§

fmt
Formats bytes into string.
fmt_as_parts
Formats bytes into size and unit
fmt_int
Formats an integer, with underscore (_) used as digit grouping