Struct cxx_qt_lib::QDateTime
source · [−]pub struct QDateTime { /* private fields */ }
Expand description
The Rust representation of Qt’s QDateTime
Internally this holds a UniquePtr to a QDateTimeCpp which has been constructed on the C++ side.
Implementations
sourceimpl QDateTime
impl QDateTime
sourcepub fn from_qdatetime(qdatetime: &QDateTimeCpp) -> Self
pub fn from_qdatetime(qdatetime: &QDateTimeCpp) -> Self
Construct a Rust QDateTime from an existing QDateTimeCpp, 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 QDateTime from a given QDate and QTime
Trait Implementations
sourceimpl ToUniquePtr for QDateTime
impl ToUniquePtr for QDateTime
sourcefn to_unique_ptr(self) -> UniquePtr<QDateTimeCpp>
fn to_unique_ptr(self) -> UniquePtr<QDateTimeCpp>
Retrieve the UniquePtr to the Qt QDateTimeCpp of this Rust QDateTime so that this object can be passed back to C++.
type CppType = QDateTime
Auto Trait Implementations
impl RefUnwindSafe for QDateTime
impl !Send for QDateTime
impl !Sync for QDateTime
impl !Unpin for QDateTime
impl UnwindSafe for QDateTime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more