Struct nix::sys::time::TimeSpec
[−]
[src]
#[repr(C)]pub struct TimeSpec(_);
Methods
impl TimeSpec
[src]
Trait Implementations
impl Clone for TimeSpec
[src]
fn clone(&self) -> TimeSpec
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for TimeSpec
[src]
impl AsRef<timespec> for TimeSpec
[src]
impl Debug for TimeSpec
[src]
impl PartialEq for TimeSpec
[src]
fn eq(&self, other: &TimeSpec) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for TimeSpec
[src]
impl Ord for TimeSpec
[src]
fn cmp(&self, other: &TimeSpec) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
ord_max_min
)Compares and returns the minimum of two values. Read more
impl PartialOrd for TimeSpec
[src]
fn partial_cmp(&self, other: &TimeSpec) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl TimeValLike for TimeSpec
[src]
fn seconds(seconds: i64) -> TimeSpec
fn milliseconds(milliseconds: i64) -> TimeSpec
fn microseconds(microseconds: i64) -> TimeSpec
Makes a new TimeSpec
with given number of microseconds.
fn nanoseconds(nanoseconds: i64) -> TimeSpec
Makes a new TimeSpec
with given number of nanoseconds.
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 Neg for TimeSpec
[src]
type Output = TimeSpec
The resulting type after applying the -
operator
fn neg(self) -> TimeSpec
The method for the unary -
operator
impl Add for TimeSpec
[src]
type Output = TimeSpec
The resulting type after applying the +
operator
fn add(self, rhs: TimeSpec) -> TimeSpec
The method for the +
operator
impl Sub for TimeSpec
[src]
type Output = TimeSpec
The resulting type after applying the -
operator
fn sub(self, rhs: TimeSpec) -> TimeSpec
The method for the -
operator
impl Mul<i32> for TimeSpec
[src]
type Output = TimeSpec
The resulting type after applying the *
operator
fn mul(self, rhs: i32) -> TimeSpec
The method for the *
operator
impl Div<i32> for TimeSpec
[src]
type Output = TimeSpec
The resulting type after applying the /
operator
fn div(self, rhs: i32) -> TimeSpec
The method for the /
operator