#[repr(transparent)]pub struct TimeVal(_);
Implementations
Trait Implementations
sourceimpl Ord for TimeVal
impl Ord for TimeVal
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<TimeVal> for TimeVal
impl PartialOrd<TimeVal> for TimeVal
sourcefn partial_cmp(&self, other: &TimeVal) -> Option<Ordering>
fn partial_cmp(&self, other: &TimeVal) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl TimeValLike for TimeVal
impl TimeValLike for TimeVal
sourcefn microseconds(microseconds: i64) -> TimeVal
fn microseconds(microseconds: i64) -> TimeVal
Makes a new TimeVal
with given number of microseconds.
sourcefn nanoseconds(nanoseconds: i64) -> TimeVal
fn nanoseconds(nanoseconds: i64) -> TimeVal
Makes a new TimeVal
with given number of nanoseconds. Some precision
will be lost
fn seconds(seconds: i64) -> TimeVal
fn milliseconds(milliseconds: i64) -> TimeVal
fn num_seconds(&self) -> i64
fn num_milliseconds(&self) -> i64
fn num_microseconds(&self) -> i64
fn num_nanoseconds(&self) -> i64
fn zero() -> Self
fn hours(hours: i64) -> Self
fn minutes(minutes: i64) -> Self
fn num_hours(&self) -> i64
fn num_minutes(&self) -> i64
impl Copy for TimeVal
impl Eq for TimeVal
impl StructuralEq for TimeVal
impl StructuralPartialEq for TimeVal
Auto Trait Implementations
impl RefUnwindSafe for TimeVal
impl Send for TimeVal
impl Sync for TimeVal
impl Unpin for TimeVal
impl UnwindSafe for TimeVal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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