MCPcopy Create free account
hub / github.com/bytesize-rs/bytesize / mib

Function mib

src/lib.rs:120–122  ·  view source on GitHub ↗

Converts a quantity of mebibytes to bytes.

(size: V)

Source from the content-addressed store, hash-verified

118
119/// Converts a quantity of mebibytes to bytes.
120pub fn mib<V: Into<u64>>(size: V) -> u64 {
121 size.into() * MIB
122}
123
124/// Converts a quantity of gigabytes to bytes.
125pub fn gb<V: Into<u64>>(size: V) -> u64 {

Callers 5

test_serde_jsonFunction · 0.85
test_to_string_asFunction · 0.85
precisionFunction · 0.85
test_sumFunction · 0.85
test_displayFunction · 0.85

Calls

no outgoing calls

Tested by 5

test_serde_jsonFunction · 0.68
test_to_string_asFunction · 0.68
precisionFunction · 0.68
test_sumFunction · 0.68
test_displayFunction · 0.68