Struct cxx_qt_lib::DateTime
source · [−]pub struct DateTime { /* private fields */ }
Expand description
The Rust representation of Qt’s QDateTime
Internally this holds a UniquePtr to a QDateTime which has been constructed on the C++ side.
Implementations
sourceimpl DateTime
impl DateTime
sourcepub fn from_qdatetime(qdatetime: &QDateTime) -> Self
pub fn from_qdatetime(qdatetime: &QDateTime) -> Self
Construct a Rust DateTime from an existing QDateTime, this is a copy operation.
sourcepub fn from_date_and_time(date: &QDate, time: &QTime) -> Self
pub fn from_date_and_time(date: &QDate, time: &QTime) -> Self
Construct a Rust DateTime from a given QDate and QTime
pub fn date(&self) -> QDate
pub fn time(&self) -> QTime
pub fn set_date(&mut self, date: &QDate)
pub fn set_time(&mut self, time: &QTime)
Trait Implementations
sourceimpl ToUniquePtr for DateTime
impl ToUniquePtr for DateTime
Auto Trait Implementations
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl !Unpin for DateTime
impl UnwindSafe for DateTime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more