MemorySize Type

Build MIT License API docs

This crate provides the MemorySize data type as a size unit. This might help errors during conversion between different units as well as comfort for printing the managed size as a human-readable value.

Usage

To use this library, you just have to add the following lines into your projects Cargo.toml:

toml [dependencies.memory-size-type] version = "0.2.0" default-features = false

Examples

There are different use-cases for this library. The following examples represent just some possible usages.

Calculating with memory sizes

rust TODO

Printing a size in a human-readable format

rust TODO