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

Function pb

src/lib.rs:145–147  ·  view source on GitHub ↗

Converts a quantity of petabytes to bytes.

(size: V)

Source from the content-addressed store, hash-verified

143
144/// Converts a quantity of petabytes to bytes.
145pub fn pb<V: Into<u64>>(size: V) -> u64 {
146 size.into() * PB
147}
148
149/// Converts a quantity of pebibytes to bytes.
150pub fn pib<V: Into<u64>>(size: V) -> u64 {

Callers 1

test_to_string_asFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_to_string_asFunction · 0.68