Skip to main content

Module byte_qty

Module byte_qty 

Source
Expand description

ByteQty, Quantity of memory used, measured in bytes.

Re-exportsยง

use derive_more::Deref; ๐Ÿ”’
use derive_more::DerefMut; ๐Ÿ”’
use derive_more::From; ๐Ÿ”’
use derive_more::Into; ๐Ÿ”’
use itertools::Itertools; ๐Ÿ”’
use thiserror::Error; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use std::fmt; ๐Ÿ”’
use std::fmt::Display; ๐Ÿ”’
use std::str::FromStr; ๐Ÿ”’
use InvalidByteQty as IBQ; ๐Ÿ”’

Structsยง

ByteQty
Quantity of memory used, measured in bytes.
SupportedUnits ๐Ÿ”’
Helper to format the list of supported units into IBQ::UnknownUnit

Enumsยง

ByteQtySerde ๐Ÿ”’
Helper for deserializing ByteQty
InvalidByteQty
Error parsing (or deserialising) a ByteQty

Constantsยง

ALL_UNITS ๐Ÿ”’
Units that are used when parsing and when printing
DISPLAY_UNITS ๐Ÿ”’
Units that can be suffixed to a number, when displaying ByteQty (macro)
PARSE_UNITS ๐Ÿ”’
Units that are (only) recognised parsing a ByteQty from a string