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

Function kib

src/lib.rs:110–112  ·  view source on GitHub ↗

Converts a quantity of kibibytes to bytes.

(size: V)

Source from the content-addressed store, hash-verified

108
109/// Converts a quantity of kibibytes to bytes.
110pub fn kib<V: Into<u64>>(size: V) -> u64 {
111 size.into() * KIB
112}
113
114/// Converts a quantity of megabytes to bytes.
115pub fn mb<V: Into<u64>>(size: V) -> u64 {

Callers 3

create_byte_sizeFunction · 0.85
test_to_string_asFunction · 0.85
test_displayFunction · 0.85

Calls

no outgoing calls

Tested by 3

create_byte_sizeFunction · 0.68
test_to_string_asFunction · 0.68
test_displayFunction · 0.68