#[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) -> Self
pub fn from_y_m_d(y: i32, m: i32, d: i32) -> Self
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 moreimpl 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