pub struct ByteSize(/* private fields */);Expand description
§ByteSize
Implementations§
Source§impl ByteSize
impl ByteSize
pub fn pib(size: f64) -> Self
pub fn tib(size: f64) -> Self
pub fn gib(size: f64) -> Self
pub fn mib(size: f64) -> Self
pub fn kib(size: f64) -> Self
pub fn pb(size: f64) -> Self
pub fn tb(size: f64) -> Self
pub fn gb(size: f64) -> Self
pub fn mb(size: f64) -> Self
pub fn kb(size: f64) -> Self
pub fn b(size: f64) -> Self
pub fn ib(size: f64) -> Self
Source§impl ByteSize
impl ByteSize
pub fn to_pib(&self) -> ByteSizeUnit
pub fn to_tib(&self) -> ByteSizeUnit
pub fn to_gib(&self) -> ByteSizeUnit
pub fn to_mib(&self) -> ByteSizeUnit
pub fn to_kib(&self) -> ByteSizeUnit
pub fn to_ib(&self) -> ByteSizeUnit
pub fn to_pb(&self) -> ByteSizeUnit
pub fn to_tb(&self) -> ByteSizeUnit
pub fn to_gb(&self) -> ByteSizeUnit
pub fn to_mb(&self) -> ByteSizeUnit
pub fn to_kb(&self) -> ByteSizeUnit
pub fn to_b(&self) -> ByteSizeUnit
Trait Implementations§
Source§impl Ord for ByteSize
impl Ord for ByteSize
Source§impl PartialOrd for ByteSize
impl PartialOrd for ByteSize
impl Copy for ByteSize
impl Eq for ByteSize
impl StructuralPartialEq for ByteSize
Auto Trait Implementations§
impl Freeze for ByteSize
impl RefUnwindSafe for ByteSize
impl Send for ByteSize
impl Sync for ByteSize
impl Unpin for ByteSize
impl UnwindSafe for ByteSize
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more