#[repr(C)]pub struct QTime { /* private fields */ }
Expand description
Wrapper around QTime
class.
Implementations
sourceimpl QTime
impl QTime
sourcepub fn from_h_m_s_ms(h: i32, m: i32, s: Option<i32>, ms: Option<i32>) -> Self
pub fn from_h_m_s_ms(h: i32, m: i32, s: Option<i32>, ms: Option<i32>) -> Self
Wrapper around QTime(int h, int m, int s = 0, int ms = 0)
constructor.
Wrapper-specific
Default arguments converted to Option
s.
sourcepub fn get_hour(&self) -> i32
pub fn get_hour(&self) -> i32
Wrapper around QTime::hour()
method.
sourcepub fn get_minute(&self) -> i32
pub fn get_minute(&self) -> i32
Wrapper around QTime::minute()
method.
sourcepub fn get_second(&self) -> i32
pub fn get_second(&self) -> i32
Wrapper around QTime::second()
method.
sourcepub fn get_msec(&self) -> i32
pub fn get_msec(&self) -> i32
Wrapper around QTime::msec()
method.
sourcepub fn get_h_m_s_ms(&self) -> (i32, i32, i32, i32)
pub fn get_h_m_s_ms(&self) -> (i32, i32, i32, i32)
Convenience function for obtaining the hour, minute, second and millisecond components.
sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Wrapper around QTime::isValid()
method.
Trait Implementations
sourceimpl From<QTime> for QVariant
impl From<QTime> for QVariant
sourcefn from(a: QTime) -> QVariant
fn from(a: QTime) -> QVariant
Wrapper around QVariant(const QTime &)
constructor.
sourceimpl Ord for QTime
impl Ord for QTime
sourceimpl PartialOrd<QTime> for QTime
impl PartialOrd<QTime> for QTime
sourcefn lt(&self, other: &QTime) -> bool
fn lt(&self, other: &QTime) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
sourcefn gt(&self, other: &QTime) -> bool
fn gt(&self, other: &QTime) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
sourcefn le(&self, other: &QTime) -> bool
fn le(&self, other: &QTime) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for QTime
impl Eq for QTime
impl StructuralEq for QTime
Auto Trait Implementations
impl RefUnwindSafe for QTime
impl Send for QTime
impl Sync for QTime
impl Unpin for QTime
impl UnwindSafe for QTime
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more