Struct stm32f4xx_hal::dwt::ClockDuration
source · pub struct ClockDuration { /* private fields */ }
Expand description
Clock difference with capability to calculate SI units (s)
Implementations§
source§impl ClockDuration
impl ClockDuration
sourcepub fn as_secs_f32(self) -> f32
pub fn as_secs_f32(self) -> f32
Return calculated seconds as 32-bit float
sourcepub fn as_secs_f64(self) -> f64
pub fn as_secs_f64(self) -> f64
Return calculated seconds as 64-bit float
Trait Implementations§
source§impl Clone for ClockDuration
impl Clone for ClockDuration
source§fn clone(&self) -> ClockDuration
fn clone(&self) -> ClockDuration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for ClockDuration
Auto Trait Implementations§
impl RefUnwindSafe for ClockDuration
impl Send for ClockDuration
impl Sync for ClockDuration
impl Unpin for ClockDuration
impl UnwindSafe for ClockDuration
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