pub enum DataSizeUnits {
Bytes,
Kilobytes,
Megabytes,
Gigabytes,
Terabytes,
Petabytes,
}
Expand description
Physical unit of computer storage, a Byte is eight Bits.
Variants§
Bytes
Eight Bits
Kilobytes
1000 Bytes
Megabytes
1000 Kilobytes
Gigabytes
1000 Megabytes
Terabytes
1000 Gigabytes
Petabytes
1000 Terabytes
Trait Implementations§
Source§impl Clone for DataSizeUnits
impl Clone for DataSizeUnits
Source§fn clone(&self) -> DataSizeUnits
fn clone(&self) -> DataSizeUnits
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DataSizeUnits
impl Debug for DataSizeUnits
Source§impl Default for DataSizeUnits
impl Default for DataSizeUnits
Source§fn default() -> DataSizeUnits
fn default() -> DataSizeUnits
Returns the “default value” for a type. Read more
Source§impl FromUnits<f32> for DataSizeUnits
impl FromUnits<f32> for DataSizeUnits
Source§impl FromUnits<f64> for DataSizeUnits
impl FromUnits<f64> for DataSizeUnits
Source§impl FromUnits<i64> for DataSizeUnits
impl FromUnits<i64> for DataSizeUnits
Source§impl FromUnits<u64> for DataSizeUnits
impl FromUnits<u64> for DataSizeUnits
Source§impl FromUnits<usize> for DataSizeUnits
impl FromUnits<usize> for DataSizeUnits
Source§impl PartialEq for DataSizeUnits
impl PartialEq for DataSizeUnits
Source§impl Unit<DataSizeUnits> for &DataSize
impl Unit<DataSizeUnits> for &DataSize
Source§impl Unit<DataSizeUnits> for &mut DataSize
impl Unit<DataSizeUnits> for &mut DataSize
Source§impl Unit<DataSizeUnits> for DataSize
impl Unit<DataSizeUnits> for DataSize
Source§impl UnitStruct<DataSizeUnits> for &DataSize
impl UnitStruct<DataSizeUnits> for &DataSize
Source§impl UnitStruct<DataSizeUnits> for &mut DataSize
impl UnitStruct<DataSizeUnits> for &mut DataSize
Source§impl UnitStruct<DataSizeUnits> for DataSize
impl UnitStruct<DataSizeUnits> for DataSize
impl Copy for DataSizeUnits
impl Eq for DataSizeUnits
impl StructuralPartialEq for DataSizeUnits
Auto Trait Implementations§
impl Freeze for DataSizeUnits
impl RefUnwindSafe for DataSizeUnits
impl Send for DataSizeUnits
impl Sync for DataSizeUnits
impl Unpin for DataSizeUnits
impl UnwindSafe for DataSizeUnits
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