pub struct TimeVal(/* private fields */);
Implementations§
Trait Implementations§
source§impl Ord for TimeVal
impl Ord for TimeVal
source§impl PartialEq for TimeVal
impl PartialEq for TimeVal
source§impl PartialOrd for TimeVal
impl PartialOrd for TimeVal
1.0.0 · source§fn 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 moresource§impl TimeValLike for TimeVal
impl TimeValLike for TimeVal
source§fn microseconds(microseconds: i64) -> TimeVal
fn microseconds(microseconds: i64) -> TimeVal
Makes a new TimeVal
with given number of microseconds.
source§fn 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 StructuralPartialEq for TimeVal
Auto Trait Implementations§
impl Freeze for TimeVal
impl RefUnwindSafe for TimeVal
impl Send for TimeVal
impl Sync for TimeVal
impl Unpin for TimeVal
impl UnwindSafe for TimeVal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)