pretty-bytes-rust 0.3.0

Rust library that takes a number that represent a byte and returns a string that is prettier to read for a human
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Clone)]
pub struct PrettyBytesOptions {
  pub use_1024_instead_of_1000: Option<bool>,
  pub number_of_decimal: Option<usize>,
  pub remove_zero_decimal: Option<bool>
}


#[derive(Clone)]
pub struct PrettyBytesOptionWithDefault {
  pub use_1024_instead_of_1000: bool,
  pub number_of_decimal: usize,
  pub remove_zero_decimal: bool
}