Skip to main content

Microsecond

Struct Microsecond 

Source
pub struct Microsecond<const N: u128 = 1>;
Expand description

A unit of time representing exactly N microseconds.

Implementations§

Source§

impl Microsecond<1>

Source

pub const fn per<T>(_larger: T) -> <T as DefaultOutput<Self>>::Output
where T: MultipleOf<Self, T::Output> + DefaultOutput<Self> + Copy,

Obtain the number of times Microsecond can fit into T. If T is smaller than Microsecond, the code will fail to compile. The return type is the smallest unsigned integer type that can represent the value.

Valid calls:

  • Microsecond::per(Microsecond) (returns u8)
  • Microsecond::per(Millisecond) (returns u16)
  • Microsecond::per(Second) (returns u32)
  • Microsecond::per(Minute) (returns u32)
  • Microsecond::per(Hour) (returns u32)
  • Microsecond::per(Day) (returns u64)
  • Microsecond::per(Week) (returns u64)
Source

pub const fn per_t<Output>( larger: impl MultipleOf<Self, Output> + Copy, ) -> Output

Obtain the number of times Microsecond can fit into T. If T is smaller than Microsecond, the code will fail to compile. The return type is any primitive numeric type that can represent the value.

Valid calls:

  • Microsecond::per(Microsecond) (returns u8, u16, u32, u64, u128, usize, i8, i16, i32, i64, i128, isize, f32, or f64)
  • Microsecond::per(Millisecond) (returns u16, u32, u64, u128, usize, i16, i32, i64, i128, isize, f32, or f64)
  • Microsecond::per(Second) (returns u32, u64, u128, usize, i32, i64, i128, isize, f32, or f64)
  • Microsecond::per(Minute) (returns u32, u64, u128, usize, i32, i64, i128, isize, f32, or f64)
  • Microsecond::per(Hour) (returns u32, u64, u128, i64, i128, f32, or f64)
  • Microsecond::per(Day) (returns u64, u128, i64, i128, f32, or f64)
  • Microsecond::per(Week) (returns u64, u128, i64, i128, f32, or f64)

Trait Implementations§

Source§

impl<const N: u128> Clone for Microsecond<N>

Source§

fn clone(&self) -> Microsecond<N>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const N: u128> Debug for Microsecond<N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DefaultOutput<Microsecond> for Day

Source§

type Output = u64

The default output type for the per method.
Source§

impl DefaultOutput<Microsecond> for Hour

Source§

type Output = u32

The default output type for the per method.
Source§

impl DefaultOutput<Microsecond> for Microsecond

Source§

type Output = u8

The default output type for the per method.
Source§

impl DefaultOutput<Microsecond> for Millisecond

Source§

type Output = u16

The default output type for the per method.
Source§

impl DefaultOutput<Microsecond> for Minute

Source§

type Output = u32

The default output type for the per method.
Source§

impl DefaultOutput<Microsecond> for Second

Source§

type Output = u32

The default output type for the per method.
Source§

impl DefaultOutput<Microsecond> for Week

Source§

type Output = u64

The default output type for the per method.
Source§

impl DefaultOutput<Nanosecond> for Microsecond

Source§

type Output = u16

The default output type for the per method.
Source§

impl<const N: u128> Eq for Microsecond<N>

Source§

#[doc(hidden)]
fn assert_receiver_is_total_eq(&self)

Source§

impl<const N: u128> Hash for Microsecond<N>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl MultipleOf<Microsecond, f32> for Day

Source§

const VALUE: f32 = 86_400_000_000.

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, f32> for Hour

Source§

const VALUE: f32 = 3_600_000_000.

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, f32> for Microsecond

Source§

const VALUE: f32 = 1.

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, f32> for Millisecond

Source§

const VALUE: f32 = 1_000.

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, f32> for Minute

Source§

const VALUE: f32 = 60_000_000.

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, f32> for Second

Source§

const VALUE: f32 = 1_000_000.

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, f32> for Week

Source§

const VALUE: f32 = 604_800_000_000.

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, f64> for Day

Source§

const VALUE: f64 = 86_400_000_000.

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, f64> for Hour

Source§

const VALUE: f64 = 3_600_000_000.

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, f64> for Microsecond

Source§

const VALUE: f64 = 1.

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, f64> for Millisecond

Source§

const VALUE: f64 = 1_000.

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, f64> for Minute

Source§

const VALUE: f64 = 60_000_000.

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, f64> for Second

Source§

const VALUE: f64 = 1_000_000.

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, f64> for Week

Source§

const VALUE: f64 = 604_800_000_000.

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i128> for Day

Source§

const VALUE: i128 = 86_400_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i128> for Hour

Source§

const VALUE: i128 = 3_600_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i128> for Microsecond

Source§

const VALUE: i128 = 1

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i128> for Millisecond

Source§

const VALUE: i128 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i128> for Minute

Source§

const VALUE: i128 = 60_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i128> for Second

Source§

const VALUE: i128 = 1_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i128> for Week

Source§

const VALUE: i128 = 604_800_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i16> for Microsecond

Source§

const VALUE: i16 = 1

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i16> for Millisecond

Source§

const VALUE: i16 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i32> for Microsecond

Source§

const VALUE: i32 = 1

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i32> for Millisecond

Source§

const VALUE: i32 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i32> for Minute

Source§

const VALUE: i32 = 60_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i32> for Second

Source§

const VALUE: i32 = 1_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i64> for Day

Source§

const VALUE: i64 = 86_400_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i64> for Hour

Source§

const VALUE: i64 = 3_600_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i64> for Microsecond

Source§

const VALUE: i64 = 1

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i64> for Millisecond

Source§

const VALUE: i64 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i64> for Minute

Source§

const VALUE: i64 = 60_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i64> for Second

Source§

const VALUE: i64 = 1_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i64> for Week

Source§

const VALUE: i64 = 604_800_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, i8> for Microsecond

Source§

const VALUE: i8 = 1

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, isize> for Microsecond

Source§

const VALUE: isize = 1

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, isize> for Millisecond

Source§

const VALUE: isize = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, isize> for Minute

Source§

const VALUE: isize = 60_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, isize> for Second

Source§

const VALUE: isize = 1_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u128> for Day

Source§

const VALUE: u128 = 86_400_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u128> for Hour

Source§

const VALUE: u128 = 3_600_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u128> for Microsecond

Source§

const VALUE: u128 = 1

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u128> for Millisecond

Source§

const VALUE: u128 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u128> for Minute

Source§

const VALUE: u128 = 60_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u128> for Second

Source§

const VALUE: u128 = 1_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u128> for Week

Source§

const VALUE: u128 = 604_800_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u16> for Microsecond

Source§

const VALUE: u16 = 1

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u16> for Millisecond

Source§

const VALUE: u16 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u32> for Hour

Source§

const VALUE: u32 = 3_600_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u32> for Microsecond

Source§

const VALUE: u32 = 1

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u32> for Millisecond

Source§

const VALUE: u32 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u32> for Minute

Source§

const VALUE: u32 = 60_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u32> for Second

Source§

const VALUE: u32 = 1_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u64> for Day

Source§

const VALUE: u64 = 86_400_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u64> for Hour

Source§

const VALUE: u64 = 3_600_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u64> for Microsecond

Source§

const VALUE: u64 = 1

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u64> for Millisecond

Source§

const VALUE: u64 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u64> for Minute

Source§

const VALUE: u64 = 60_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u64> for Second

Source§

const VALUE: u64 = 1_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u64> for Week

Source§

const VALUE: u64 = 604_800_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, u8> for Microsecond

Source§

const VALUE: u8 = 1

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, usize> for Microsecond

Source§

const VALUE: usize = 1

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, usize> for Millisecond

Source§

const VALUE: usize = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, usize> for Minute

Source§

const VALUE: usize = 60_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Microsecond, usize> for Second

Source§

const VALUE: usize = 1_000_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Nanosecond, f32> for Microsecond

Source§

const VALUE: f32 = 1_000.

The number of one unit of time in the other.
Source§

impl MultipleOf<Nanosecond, f64> for Microsecond

Source§

const VALUE: f64 = 1_000.

The number of one unit of time in the other.
Source§

impl MultipleOf<Nanosecond, i128> for Microsecond

Source§

const VALUE: i128 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Nanosecond, i16> for Microsecond

Source§

const VALUE: i16 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Nanosecond, i32> for Microsecond

Source§

const VALUE: i32 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Nanosecond, i64> for Microsecond

Source§

const VALUE: i64 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Nanosecond, isize> for Microsecond

Source§

const VALUE: isize = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Nanosecond, u128> for Microsecond

Source§

const VALUE: u128 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Nanosecond, u16> for Microsecond

Source§

const VALUE: u16 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Nanosecond, u32> for Microsecond

Source§

const VALUE: u32 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Nanosecond, u64> for Microsecond

Source§

const VALUE: u64 = 1_000

The number of one unit of time in the other.
Source§

impl MultipleOf<Nanosecond, usize> for Microsecond

Source§

const VALUE: usize = 1_000

The number of one unit of time in the other.
Source§

impl<const N: u128> Ord for Microsecond<N>

Source§

fn cmp(&self, other: &Microsecond<N>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<const N: u128> PartialEq<Day<N>> for Microsecond<N>

Source§

fn eq(&self, _: &Day<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq<Hour<N>> for Microsecond<N>

Source§

fn eq(&self, _: &Hour<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq<Microsecond<N>> for Day<N>

Source§

fn eq(&self, _: &Microsecond<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq<Microsecond<N>> for Hour<N>

Source§

fn eq(&self, _: &Microsecond<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq<Microsecond<N>> for Millisecond<N>

Source§

fn eq(&self, _: &Microsecond<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq<Microsecond<N>> for Minute<N>

Source§

fn eq(&self, _: &Microsecond<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq<Microsecond<N>> for Nanosecond<N>

Source§

fn eq(&self, _: &Microsecond<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq<Microsecond<N>> for Second<N>

Source§

fn eq(&self, _: &Microsecond<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq<Microsecond<N>> for Unit<N>

Source§

fn eq(&self, _: &Microsecond<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq<Microsecond<N>> for Week<N>

Source§

fn eq(&self, _: &Microsecond<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq<Millisecond<N>> for Microsecond<N>

Source§

fn eq(&self, _: &Millisecond<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq<Minute<N>> for Microsecond<N>

Source§

fn eq(&self, _: &Minute<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq<Nanosecond<N>> for Microsecond<N>

Source§

fn eq(&self, _: &Nanosecond<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq<Second<N>> for Microsecond<N>

Source§

fn eq(&self, _: &Second<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq<Unit<N>> for Microsecond<N>

Source§

fn eq(&self, other: &Unit<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq<Week<N>> for Microsecond<N>

Source§

fn eq(&self, _: &Week<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialEq for Microsecond<N>

Source§

fn eq(&self, other: &Microsecond<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: u128> PartialOrd<Day<N>> for Microsecond<N>

Source§

fn partial_cmp(&self, _: &Day<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd<Hour<N>> for Microsecond<N>

Source§

fn partial_cmp(&self, _: &Hour<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd<Microsecond<N>> for Day<N>

Source§

fn partial_cmp(&self, _: &Microsecond<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd<Microsecond<N>> for Hour<N>

Source§

fn partial_cmp(&self, _: &Microsecond<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd<Microsecond<N>> for Millisecond<N>

Source§

fn partial_cmp(&self, _: &Microsecond<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd<Microsecond<N>> for Minute<N>

Source§

fn partial_cmp(&self, _: &Microsecond<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd<Microsecond<N>> for Nanosecond<N>

Source§

fn partial_cmp(&self, _: &Microsecond<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd<Microsecond<N>> for Second<N>

Source§

fn partial_cmp(&self, _: &Microsecond<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd<Microsecond<N>> for Unit<N>

Source§

fn partial_cmp(&self, _: &Microsecond<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd<Microsecond<N>> for Week<N>

Source§

fn partial_cmp(&self, _: &Microsecond<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd<Millisecond<N>> for Microsecond<N>

Source§

fn partial_cmp(&self, _: &Millisecond<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd<Minute<N>> for Microsecond<N>

Source§

fn partial_cmp(&self, _: &Minute<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd<Nanosecond<N>> for Microsecond<N>

Source§

fn partial_cmp(&self, _: &Nanosecond<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd<Second<N>> for Microsecond<N>

Source§

fn partial_cmp(&self, _: &Second<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd<Unit<N>> for Microsecond<N>

Source§

fn partial_cmp(&self, other: &Unit<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd<Week<N>> for Microsecond<N>

Source§

fn partial_cmp(&self, _: &Week<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> PartialOrd for Microsecond<N>

Source§

fn partial_cmp(&self, other: &Microsecond<N>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

#[doc(hidden)]
fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
If self == other, returns ControlFlow::Continue(()). Otherwise, returns ControlFlow::Break(self < other). Read more
Source§

#[doc(hidden)]
fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for <= instead of <.
Source§

#[doc(hidden)]
fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for > instead of <.
Source§

#[doc(hidden)]
fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>

🔬This is a nightly-only experimental API. (partial_ord_chaining_methods)
Same as __chaining_lt, but for >= instead of <.
Source§

impl<const N: u128> Copy for Microsecond<N>

Source§

impl<const N: u128> StructuralPartialEq for Microsecond<N>

Source§

impl<const N: u128> TrivialClone for Microsecond<N>

Auto Trait Implementations§

§

impl<const N: u128> Freeze for Microsecond<N>

§

impl<const N: u128> RefUnwindSafe for Microsecond<N>

§

impl<const N: u128> Send for Microsecond<N>

§

impl<const N: u128> Sync for Microsecond<N>

§

impl<const N: u128> Unpin for Microsecond<N>

§

impl<const N: u128> UnwindSafe for Microsecond<N>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> SizedTypeProperties for T

Source§

#[doc(hidden)]
const SIZE: usize = _

🔬This is a nightly-only experimental API. (sized_type_properties)
Source§

#[doc(hidden)]
const ALIGN: usize = _

🔬This is a nightly-only experimental API. (sized_type_properties)
Source§

#[doc(hidden)]
const ALIGNMENT: Alignment = _

🔬This is a nightly-only experimental API. (ptr_alignment_type)
Source§

#[doc(hidden)]
const IS_ZST: bool = _

🔬This is a nightly-only experimental API. (sized_type_properties)
true if this type requires no storage. false if its size is greater than zero. Read more
Source§

#[doc(hidden)]
const LAYOUT: Layout = _

🔬This is a nightly-only experimental API. (sized_type_properties)
Source§

#[doc(hidden)]
const MAX_SLICE_LEN: usize = _

🔬This is a nightly-only experimental API. (sized_type_properties)
The largest safe length for a [Self]. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Printable for T
where T: Copy + Debug,