[]Struct qmetaobject::qttypes::QDate

#[repr(C)]
pub struct QDate { /* fields omitted */ }

Wrapper around Qt's QDate class

Methods

impl QDate[src]

pub fn from_y_m_d(y: i32, m: i32, d: i32) -> Self[src]

Constructs a QDate from the year, month and date. Refer to the Qt documentation for the QDate constructor.

pub fn get_y_m_d(&self) -> (i32, i32, i32)[src]

Returns the year, month and day components. Refer to the Qt documentation for QDate::getDate.

pub fn is_valid(&self) -> bool[src]

Refer to the Qt documentation for QDate::isValid.

Trait Implementations

impl QMetaType for QDate[src]

impl From<QDate> for QVariant[src]

impl Clone for QDate

impl Copy for QDate

impl Default for QDate

impl Eq for QDate

impl Ord for QDate

impl PartialEq<QDate> for QDate

impl PartialOrd<QDate> for QDate

impl StructuralEq for QDate

Auto Trait Implementations

impl Send for QDate

impl Sync for QDate

impl Unpin for QDate

impl UnwindSafe for QDate

impl RefUnwindSafe for QDate

Blanket Implementations

impl<T> QMetaType for T where
    T: QGadget + Clone + Default + 'static, 
[src]

impl<T> PropertyType for T where
    T: QMetaType
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]