pub struct Ticks(/* private fields */);Implementations§
Source§impl Ticks
impl Ticks
pub fn new(t: u64) -> Self
pub const fn max() -> Self
pub fn now() -> Self
pub fn abs_diff(&self, t1: &Ticks) -> Ticks
pub fn from_duration(duration: Duration, freq: &Freq) -> Result<Self, Error>
pub fn as_duration_ex(&self, freq: &Freq) -> Duration
pub fn elapsed(&self, freq: &Freq) -> Duration
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Ticks
impl RefUnwindSafe for Ticks
impl Send for Ticks
impl Sync for Ticks
impl Unpin for Ticks
impl UnwindSafe for Ticks
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