Struct qt_core::q_locale::DataSizeFormat
source · pub struct DataSizeFormat(/* private fields */);
Expand description
Specifies the format for representation of data quantities.
C++ enum: QLocale::DataSizeFormat
.
Specifies the format for representation of data quantities.
This enum was introduced or modified in Qt 5.10.
The DataSizeFormats type is a typedef for QFlags<DataSizeFormat>. It stores an OR combination of DataSizeFormat values.
See also formattedDataSize().
Implementations§
source§impl DataSizeFormat
impl DataSizeFormat
sourcepub const DataSizeBase1000: DataSizeFormat = _
pub const DataSizeBase1000: DataSizeFormat = _
C++ enum variant: DataSizeBase1000 = 1
sourcepub const DataSizeSIQuantifiers: DataSizeFormat = _
pub const DataSizeSIQuantifiers: DataSizeFormat = _
C++ enum variant: DataSizeSIQuantifiers = 2
sourcepub const DataSizeIecFormat: DataSizeFormat = _
pub const DataSizeIecFormat: DataSizeFormat = _
format using base 1024 and IEC prefixes: KiB, MiB, GiB, … (C++ enum variant: DataSizeIecFormat = 0
)
sourcepub const DataSizeTraditionalFormat: DataSizeFormat = _
pub const DataSizeTraditionalFormat: DataSizeFormat = _
format using base 1024 and SI prefixes: kB, MB, GB, … (C++ enum variant: DataSizeTraditionalFormat = 2
)
sourcepub const DataSizeSIFormat: DataSizeFormat = _
pub const DataSizeSIFormat: DataSizeFormat = _
format using base 1000 and SI prefixes: kB, MB, GB, … (C++ enum variant: DataSizeSIFormat = 3
)
Trait Implementations§
source§impl<T: Into<QFlags<DataSizeFormat>>> BitOr<T> for DataSizeFormat
impl<T: Into<QFlags<DataSizeFormat>>> BitOr<T> for DataSizeFormat
§type Output = QFlags<DataSizeFormat>
type Output = QFlags<DataSizeFormat>
The resulting type after applying the
|
operator.source§impl Clone for DataSizeFormat
impl Clone for DataSizeFormat
source§fn clone(&self) -> DataSizeFormat
fn clone(&self) -> DataSizeFormat
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 DataSizeFormat
impl Debug for DataSizeFormat
source§impl From<DataSizeFormat> for QFlags<DataSizeFormat>
impl From<DataSizeFormat> for QFlags<DataSizeFormat>
source§fn from(value: DataSizeFormat) -> Self
fn from(value: DataSizeFormat) -> Self
Converts to this type from the input type.
source§impl From<DataSizeFormat> for c_int
impl From<DataSizeFormat> for c_int
source§fn from(value: DataSizeFormat) -> Self
fn from(value: DataSizeFormat) -> Self
Converts to this type from the input type.
source§impl From<i32> for DataSizeFormat
impl From<i32> for DataSizeFormat
source§impl PartialEq for DataSizeFormat
impl PartialEq for DataSizeFormat
source§fn eq(&self, other: &DataSizeFormat) -> bool
fn eq(&self, other: &DataSizeFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DataSizeFormat
impl Eq for DataSizeFormat
impl StructuralEq for DataSizeFormat
impl StructuralPartialEq for DataSizeFormat
Auto Trait Implementations§
impl RefUnwindSafe for DataSizeFormat
impl Send for DataSizeFormat
impl Sync for DataSizeFormat
impl Unpin for DataSizeFormat
impl UnwindSafe for DataSizeFormat
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