Struct qmetaobject::QDate
source · #[repr(C)]pub struct QDate { /* private fields */ }
Expand description
Wrapper around QDate
class.
Implementations§
source§impl QDate
impl QDate
sourcepub fn from_y_m_d(y: i32, m: i32, d: i32) -> QDate
pub fn from_y_m_d(y: i32, m: i32, d: i32) -> QDate
Wrapper around QDate(int y, int m, int d)
constructor.
sourcepub fn get_y_m_d(&self) -> (i32, i32, i32)
pub fn get_y_m_d(&self) -> (i32, i32, i32)
Wrapper around QDate::getDate(int *year, int *month, int *day)
method.
Wrapper-specific
Returns the year, month and day components as a tuple, instead of mutable references.
sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Wrapper around QDate::isValid()
method.
Trait Implementations§
source§impl Ord for QDate
impl Ord for QDate
source§impl PartialEq for QDate
impl PartialEq for QDate
source§impl PartialOrd for QDate
impl PartialOrd for QDate
source§fn le(&self, other: &QDate) -> bool
fn le(&self, other: &QDate) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl QMetaType for QDate
impl QMetaType for QDate
fn id() -> i32
source§fn to_qvariant(&self) -> QVariant
fn to_qvariant(&self) -> QVariant
Returns a QVariant containing a copy of this object
source§fn from_qvariant(variant: QVariant) -> Option<Self>
fn from_qvariant(variant: QVariant) -> Option<Self>
Attempt to convert from a QVariant to this type.
source§const CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString> = None
const CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString> = None
If this is set to a function, it enable the conversion to and from QString
const CONVERSION_FROM_STRING: Option<fn(_: &QString) -> Self> = None
impl Copy for QDate
impl Eq for QDate
impl StructuralEq for QDate
Auto Trait Implementations§
impl RefUnwindSafe for QDate
impl Send for QDate
impl Sync for QDate
impl Unpin for QDate
impl UnwindSafe for QDate
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