pub struct TimeVal(/* private fields */);
Implementations§
Trait Implementations§
Source§impl Ord for TimeVal
impl Ord for TimeVal
Source§impl PartialOrd for TimeVal
impl PartialOrd for TimeVal
Source§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§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
)