Struct stm32f4xx_hal::dwt::ClockDuration
source · [−]pub struct ClockDuration { /* private fields */ }
Expand description
Clock difference with capability to calculate SI units (s)
Implementations
sourceimpl 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
sourceimpl Clone for ClockDuration
impl Clone for ClockDuration
sourcefn clone(&self) -> ClockDuration
fn clone(&self) -> ClockDuration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more