Function gluster::translate_to_bytes
[−]
[src]
pub fn translate_to_bytes(value: &str) -> Option<u64>
This is a helper function to convert values such as 1PB into a bytes
Examples
extern crate gluster; let bytes = gluster::translate_to_bytes("1GB").unwrap(); assert_eq!(bytes, 1073741824);