[−][src]Struct time_point::TimePoint
Fields
nanos_since_zero: i64
Methods
impl TimePoint
[src]
pub const fn new(nanos_since_zero: i64) -> Self
[src]
This does not specifically require using unix time, however, that's probably expected.
pub const fn zero() -> Self
[src]
pub fn from_secs_f32(secs_since_zero: f32) -> Self
[src]
pub fn from_secs_f64(secs_since_zero: f64) -> Self
[src]
pub fn as_secs_f32(self) -> f32
[src]
pub fn as_secs_f64(self) -> f64
[src]
pub fn duration_from_zero(self) -> Duration
[src]
pub fn from_std_instant(rhs: Instant) -> Self
[src]
pub fn into_std_instant(self) -> Instant
[src]
Trait Implementations
impl Into<Instant> for TimePoint
[src]
impl Eq for TimePoint
[src]
impl Default for TimePoint
[src]
impl Clone for TimePoint
[src]
impl PartialOrd<TimePoint> for TimePoint
[src]
fn partial_cmp(&self, other: &TimePoint) -> Option<Ordering>
[src]
fn lt(&self, other: &TimePoint) -> bool
[src]
fn le(&self, other: &TimePoint) -> bool
[src]
fn gt(&self, other: &TimePoint) -> bool
[src]
fn ge(&self, other: &TimePoint) -> bool
[src]
impl PartialEq<TimePoint> for TimePoint
[src]
impl Ord for TimePoint
[src]
fn cmp(&self, other: &TimePoint) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl From<Instant> for TimePoint
[src]
impl Copy for TimePoint
[src]
impl Hash for TimePoint
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Add<Duration> for TimePoint
[src]
type Output = TimePoint
The resulting type after applying the +
operator.
fn add(self, rhs: Duration) -> Self
[src]
impl Add<TimePoint> for Duration
[src]
type Output = TimePoint
The resulting type after applying the +
operator.
fn add(self, rhs: TimePoint) -> TimePoint
[src]
impl Sub<Duration> for TimePoint
[src]
type Output = TimePoint
The resulting type after applying the -
operator.
fn sub(self, rhs: Duration) -> Self
[src]
impl Sub<TimePoint> for TimePoint
[src]
type Output = Duration
The resulting type after applying the -
operator.
fn sub(self, rhs: TimePoint) -> Duration
[src]
impl AddAssign<Duration> for TimePoint
[src]
fn add_assign(&mut self, rhs: Duration)
[src]
impl SubAssign<Duration> for TimePoint
[src]
fn sub_assign(&mut self, rhs: Duration)
[src]
impl Debug for TimePoint
[src]
Auto Trait Implementations
impl Send for TimePoint
impl Unpin for TimePoint
impl Sync for TimePoint
impl UnwindSafe for TimePoint
impl RefUnwindSafe for TimePoint
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,