Struct libpulse_binding::timeval::MicroSeconds
[−]
[src]
pub struct MicroSeconds(pub u64);
Methods
impl MicroSeconds
[src]
impl MicroSeconds
[src]
pub fn checked_add(self, other: Self) -> Option<Self>
[src]
pub fn checked_sub(self, other: Self) -> Option<Self>
[src]
pub fn checked_mul(self, rhs: u32) -> Option<Self>
[src]
pub fn checked_div(self, rhs: u32) -> Option<Self>
[src]
pub fn checked_rem(self, rhs: u32) -> Option<Self>
[src]
Trait Implementations
impl Copy for MicroSeconds
[src]
impl Clone for MicroSeconds
[src]
fn clone(&self) -> MicroSeconds
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for MicroSeconds
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for MicroSeconds
[src]
fn default() -> MicroSeconds
[src]
Returns the "default value" for a type. Read more
impl Eq for MicroSeconds
[src]
impl PartialEq for MicroSeconds
[src]
fn eq(&self, __arg_0: &MicroSeconds) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MicroSeconds) -> bool
[src]
This method tests for !=
.
impl Ord for MicroSeconds
[src]
fn cmp(&self, __arg_0: &MicroSeconds) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for MicroSeconds
[src]
fn partial_cmp(&self, __arg_0: &MicroSeconds) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &MicroSeconds) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &MicroSeconds) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &MicroSeconds) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &MicroSeconds) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl From<Timeval> for MicroSeconds
[src]
impl From<MicroSeconds> for Timeval
[src]
fn from(t: MicroSeconds) -> Self
[src]
Performs the conversion.
impl Add for MicroSeconds
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
Performs the +
operation.
impl AddAssign for MicroSeconds
[src]
fn add_assign(&mut self, rhs: Self)
[src]
Performs the +=
operation.
impl Sub for MicroSeconds
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
Performs the -
operation.
impl SubAssign for MicroSeconds
[src]
fn sub_assign(&mut self, rhs: Self)
[src]
Performs the -=
operation.
impl Mul<u32> for MicroSeconds
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: u32) -> Self
[src]
Performs the *
operation.
impl MulAssign<u32> for MicroSeconds
[src]
fn mul_assign(&mut self, rhs: u32)
[src]
Performs the *=
operation.
impl Div<u32> for MicroSeconds
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: u32) -> Self
[src]
Performs the /
operation.
impl DivAssign<u32> for MicroSeconds
[src]
fn div_assign(&mut self, rhs: u32)
[src]
Performs the /=
operation.
impl Rem<u32> for MicroSeconds
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: u32) -> Self
[src]
Performs the %
operation.
impl RemAssign<u32> for MicroSeconds
[src]
fn rem_assign(&mut self, rhs: u32)
[src]
Performs the %=
operation.