/// Write rounded size and SI unit to `f`
Write rounded size and SI unit to `f`
Write rounded size and SI unit to ` f `
fn format(&self, f: &mut fmt::Formatter) -> fmt::Result {
        match self {
            DataSize::Bytes(n) => write!(f, "{:.2} B", n),
            DataSize::KiB(n) => write!(f, "{:.2} KiB", n),
            DataSize::MiB(n) => write!(f, "{:.2} MiB", n),
            DataSize::GiB(n) => write!(f, "{:.2} GiB", n),
        }
    }
fn format ( & self , f : & mut fmt :: Formatter ) -> fmt :: Result { match self { DataSize :: Bytes ( n ) => write ! ( f " " n ) , DataSize :: KiB ( n ) => write ! ( f " " n ) , DataSize :: MiB ( n ) => write ! ( f " " n ) , DataSize :: GiB ( n ) => write ! ( f " " n ) , } }
Write rounded size and SI unit to `f`
Write rounded size and SI unit to ` f `
&self
f
&mut fmt::Formatter