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

Function gb

src/lib.rs:125–127  ·  view source on GitHub ↗

Converts a quantity of gigabytes to bytes.

(size: V)

Source from the content-addressed store, hash-verified

123
124/// Converts a quantity of gigabytes to bytes.
125pub fn gb<V: Into<u64>>(size: V) -> u64 {
126 size.into() * GB
127}
128
129/// Converts a quantity of gibibytes to bytes.
130pub fn gib<V: Into<u64>>(size: V) -> u64 {

Callers 4

to_string_iecFunction · 0.85
to_string_siFunction · 0.85
to_string_shortFunction · 0.85
test_to_string_asFunction · 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_to_string_asFunction · 0.68