#[repr(C)]pub struct TimeSpec(_);
Implementations
Trait Implementations
sourceimpl Ord for TimeSpec
impl Ord for TimeSpec
sourceimpl PartialOrd<TimeSpec> for TimeSpec
impl PartialOrd<TimeSpec> for TimeSpec
sourcefn partial_cmp(&self, other: &TimeSpec) -> Option<Ordering>
fn partial_cmp(&self, other: &TimeSpec) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl TimeValLike for TimeSpec
impl TimeValLike for TimeSpec
sourcefn microseconds(microseconds: i64) -> TimeSpec
fn microseconds(microseconds: i64) -> TimeSpec
Makes a new TimeSpec
with given number of microseconds.
sourcefn nanoseconds(nanoseconds: i64) -> TimeSpec
fn nanoseconds(nanoseconds: i64) -> TimeSpec
Makes a new TimeSpec
with given number of nanoseconds.
fn seconds(seconds: i64) -> TimeSpec
fn milliseconds(milliseconds: i64) -> TimeSpec
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 TimeSpec
impl Eq for TimeSpec
impl StructuralEq for TimeSpec
impl StructuralPartialEq for TimeSpec
Auto Trait Implementations
impl RefUnwindSafe for TimeSpec
impl Send for TimeSpec
impl Sync for TimeSpec
impl Unpin for TimeSpec
impl UnwindSafe for TimeSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more