pub fn to_bytes(&self) -> u64 {
        match self {
            MemUnit::B(bytes) => *bytes,
            MemUnit::KiB(kibs) => kibs * Self::BASE,
            MemUnit::MiB(mibs) => mibs * Self::BASE.pow(2),
            MemUnit::GiB(gibs) => gibs * Self::BASE.pow(3),
        }
    }
/// Compute the raw byte-count for the given memory unit.
Compute the raw byte-count for the given memory unit.
Compute the raw byte - count for the given memory unit .
pub fn to_bytes(&self) -> u64 {
        match self {
            MemUnit::B(bytes) => *bytes,
            MemUnit::KiB(kibs) => kibs * Self::BASE,
            MemUnit::MiB(mibs) => mibs * Self::BASE.pow(2),
            MemUnit::GiB(gibs) => gibs * Self::BASE.pow(3),
        }
    }
pub fn to_bytes ( & self ) -> u64 { match self { MemUnit :: B ( bytes ) => * bytes , MemUnit :: KiB ( kibs ) => kibs * Self :: BASE , MemUnit :: MiB ( mibs ) => mibs * Self :: BASE . pow ( 2 ) , MemUnit :: GiB ( gibs ) => gibs * Self :: BASE . pow ( 3 ) , } }
Compute the raw byte-count for the given memory unit.
Compute the raw byte - count for the given memory unit .
&self