Struct qmetaobject::QTime [−][src]
#[repr(C)]pub struct QTime { /* fields omitted */ }
Wrapper around QTime
class.
Implementations
impl QTime
[src]
pub fn from_h_m_s_ms(h: i32, m: i32, s: Option<i32>, ms: Option<i32>) -> QTime
[src]
Wrapper around QTime(int h, int m, int s = 0, int ms = 0)
constructor.
Wrapper-specific
Default arguments converted to Option
s.
pub fn get_hour(&self) -> i32
[src]
Wrapper around QTime::hour()
method.
pub fn get_minute(&self) -> i32
[src]
Wrapper around QTime::minute()
method.
pub fn get_second(&self) -> i32
[src]
Wrapper around QTime::second()
method.
pub fn get_msec(&self) -> i32
[src]
Wrapper around QTime::msec()
method.
pub fn get_h_m_s_ms(&self) -> (i32, i32, i32, i32)
[src]
Convenience function for obtaining the hour, minute, second and millisecond components.
pub fn is_valid(&self) -> bool
[src]
Wrapper around QTime::isValid()
method.
Trait Implementations
impl Clone for QTime
[src]
impl Copy for QTime
[src]
impl Default for QTime
[src]
impl Eq for QTime
[src]
impl From<QTime> for QVariant
[src]
pub fn from(a: QTime) -> QVariant
[src]
Wrapper around QVariant(const QTime &)
constructor.
impl Ord for QTime
[src]
pub fn cmp(&self, other: &QTime) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
pub fn max(self, other: Self) -> Self#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
pub fn min(self, other: Self) -> Self#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
#[must_use]
pub fn clamp(self, min: Self, max: Self) -> Selfimpl PartialEq<QTime> for QTime
[src]
pub fn eq(&self, other: &QTime) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialOrd<QTime> for QTime
[src]
pub fn lt(&self, other: &QTime) -> bool
[src]
pub fn gt(&self, other: &QTime) -> bool
[src]
pub fn le(&self, other: &QTime) -> bool
[src]
pub fn ge(&self, other: &QTime) -> bool
[src]
pub fn partial_cmp(&self, other: &QTime) -> Option<Ordering>
[src]
impl QMetaType for QTime
[src]
fn register(_name: Option<&CStr>) -> i32
[src]
fn id() -> i32
[src]
fn to_qvariant(&self) -> QVariant
[src]
fn from_qvariant(variant: QVariant) -> Option<Self>
[src]
const CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString>
[src]
const CONVERSION_FROM_STRING: Option<fn(_: &QString) -> Self>
[src]
impl StructuralEq for QTime
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> PropertyType for T where
T: QMetaType,
[src]
T: QMetaType,
pub fn register_type(&CStr) -> i32
[src]
pub unsafe fn pass_to_qt(&mut Self, *mut c_void)
[src]
pub unsafe fn read_from_qt(*const c_void) -> T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,