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

Function gib

src/lib.rs:130–132  ·  view source on GitHub ↗

Converts a quantity of gibibytes to bytes.

(size: V)

Source from the content-addressed store, hash-verified

128
129/// Converts a quantity of gibibytes to bytes.
130pub fn gib<V: Into<u64>>(size: V) -> u64 {
131 size.into() * GIB
132}
133
134/// Converts a quantity of terabytes to bytes.
135pub fn tb<V: Into<u64>>(size: V) -> u64 {

Callers 4

to_string_iecFunction · 0.85
to_string_siFunction · 0.85
to_string_shortFunction · 0.85
test_displayFunction · 0.85

Calls

no outgoing calls

Tested by 4

to_string_iecFunction · 0.68
to_string_siFunction · 0.68
to_string_shortFunction · 0.68
test_displayFunction · 0.68