#[non_exhaustive]pub enum BytesFormat {
Decimal,
Binary,
}Expand description
The numerical base for BytesCount in benchmark outputs.
See Divan::bytes_format for more info.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Decimal
Powers of 1000, starting with KB (kilobyte). This is the default.
Binary
Powers of 1024, starting with KiB (kibibyte).
Trait Implementations§
Source§impl Clone for BytesFormat
impl Clone for BytesFormat
Source§fn clone(&self) -> BytesFormat
fn clone(&self) -> BytesFormat
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 Default for BytesFormat
impl Default for BytesFormat
Source§fn default() -> BytesFormat
fn default() -> BytesFormat
Returns the “default value” for a type. Read more
Source§impl Ord for BytesFormat
impl Ord for BytesFormat
Source§fn cmp(&self, other: &BytesFormat) -> Ordering
fn cmp(&self, other: &BytesFormat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BytesFormat
impl PartialEq for BytesFormat
Source§impl PartialOrd for BytesFormat
impl PartialOrd for BytesFormat
impl Copy for BytesFormat
impl Eq for BytesFormat
impl StructuralPartialEq for BytesFormat
Auto Trait Implementations§
impl Freeze for BytesFormat
impl RefUnwindSafe for BytesFormat
impl Send for BytesFormat
impl Sync for BytesFormat
impl Unpin for BytesFormat
impl UnwindSafe for BytesFormat
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