kube_quantity 0.9.0

kube_quantity is a library adding arithmetic operations to the Quantity type from the k8s-openapi crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// - Format -

#[derive(Debug, Clone, PartialEq, Eq, Default)]
pub(crate) enum Format {
    /// e.g., 12Mi = (12 * 2^20) = (12 * 1024^2)
    #[default]
    BinarySI,
    // /// e.g., 12e6 = (12 * 10^6)
    // DecimalExponent,
    /// e.g., 12M = (12 * 10^6) = (12 * 1000^2)
    DecimalSI,
}