Struct qt_core::q_locale::MeasurementSystem
source · pub struct MeasurementSystem(/* private fields */);
Expand description
This enum defines which units are used for measurement.
C++ enum: QLocale::MeasurementSystem
.
This enum defines which units are used for measurement.
This enum was introduced or modified in Qt 4.4.
Implementations§
source§impl MeasurementSystem
impl MeasurementSystem
sourcepub const MetricSystem: MeasurementSystem = _
pub const MetricSystem: MeasurementSystem = _
This value indicates metric units, such as meters, centimeters and millimeters. (C++ enum variant: MetricSystem = 0
)
sourcepub const ImperialUSSystem: MeasurementSystem = _
pub const ImperialUSSystem: MeasurementSystem = _
This value indicates imperial units, such as inches and miles as they are used in the United States. (C++ enum variant: ImperialUSSystem = 1
)
sourcepub const ImperialUKSystem: MeasurementSystem = _
pub const ImperialUKSystem: MeasurementSystem = _
This value indicates imperial units, such as inches and miles as they are used in the United Kingdom. (C++ enum variant: ImperialUKSystem = 2
)
sourcepub const ImperialSystem: MeasurementSystem = _
pub const ImperialSystem: MeasurementSystem = _
Provided for compatibility. Same as ImperialUSSystem (C++ enum variant: ImperialSystem = 1
)
Trait Implementations§
source§impl Clone for MeasurementSystem
impl Clone for MeasurementSystem
source§fn clone(&self) -> MeasurementSystem
fn clone(&self) -> MeasurementSystem
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 MeasurementSystem
impl Debug for MeasurementSystem
source§impl From<MeasurementSystem> for c_int
impl From<MeasurementSystem> for c_int
source§fn from(value: MeasurementSystem) -> Self
fn from(value: MeasurementSystem) -> Self
Converts to this type from the input type.
source§impl From<i32> for MeasurementSystem
impl From<i32> for MeasurementSystem
source§impl PartialEq for MeasurementSystem
impl PartialEq for MeasurementSystem
source§fn eq(&self, other: &MeasurementSystem) -> bool
fn eq(&self, other: &MeasurementSystem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MeasurementSystem
impl Eq for MeasurementSystem
impl StructuralEq for MeasurementSystem
impl StructuralPartialEq for MeasurementSystem
Auto Trait Implementations§
impl RefUnwindSafe for MeasurementSystem
impl Send for MeasurementSystem
impl Sync for MeasurementSystem
impl Unpin for MeasurementSystem
impl UnwindSafe for MeasurementSystem
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