Struct eva_common::time::Time
source · pub struct Time { /* private fields */ }Implementations§
source§impl Time
impl Time
pub fn new(sec: u64, nsec: u64) -> Self
pub fn from_timestamp_ns(timestamp_ns: u64) -> Self
pub fn from_timestamp(timestamp: f64) -> Self
pub fn timestamp(&self) -> f64
pub fn timestamp_ns(&self) -> u64
pub fn timestamp_us(&self) -> u64
pub fn timestamp_ms(&self) -> u64
Trait Implementations§
source§impl PartialEq<Time> for Time
impl PartialEq<Time> for Time
source§impl TryFrom<SystemTime> for Time
impl TryFrom<SystemTime> for Time
impl Copy for Time
impl Eq for Time
impl StructuralEq for Time
impl StructuralPartialEq for Time
Auto Trait Implementations§
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnwindSafe for Time
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more