Struct qt_core::q_locale::FormatType
source · pub struct FormatType(/* private fields */);
Expand description
Implementations§
source§impl FormatType
impl FormatType
sourcepub const LongFormat: FormatType = _
pub const LongFormat: FormatType = _
The long version of day and month names; for example, returning “January” as a month name. (C++ enum variant: LongFormat = 0
)
sourcepub const ShortFormat: FormatType = _
pub const ShortFormat: FormatType = _
The short version of day and month names; for example, returning “Jan” as a month name. (C++ enum variant: ShortFormat = 1
)
sourcepub const NarrowFormat: FormatType = _
pub const NarrowFormat: FormatType = _
A special version of day and month names for use when space is limited; for example, returning “J” as a month name. Note that the narrow format might contain the same text for different months and days or it can even be an empty string if the locale doesn’t support narrow names, so you should avoid using it for date formatting. Also, for the system locale this format is the same as ShortFormat. (C++ enum variant: NarrowFormat = 2
)
Trait Implementations§
source§impl Clone for FormatType
impl Clone for FormatType
source§fn clone(&self) -> FormatType
fn clone(&self) -> FormatType
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 FormatType
impl Debug for FormatType
source§impl From<FormatType> for c_int
impl From<FormatType> for c_int
source§fn from(value: FormatType) -> Self
fn from(value: FormatType) -> Self
Converts to this type from the input type.
source§impl From<i32> for FormatType
impl From<i32> for FormatType
source§impl PartialEq for FormatType
impl PartialEq for FormatType
source§fn eq(&self, other: &FormatType) -> bool
fn eq(&self, other: &FormatType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FormatType
impl Eq for FormatType
impl StructuralEq for FormatType
impl StructuralPartialEq for FormatType
Auto Trait Implementations§
impl RefUnwindSafe for FormatType
impl Send for FormatType
impl Sync for FormatType
impl Unpin for FormatType
impl UnwindSafe for FormatType
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