Struct lis3dh_async::Duration
source · pub struct Duration(/* private fields */);
Implementations§
source§impl Duration
impl Duration
sourcepub fn seconds(output_data_rate: DataRate, seconds: f32) -> Self
pub fn seconds(output_data_rate: DataRate, seconds: f32) -> Self
Convert a number of seconds into a duration. Internally a duration is represented
as a multiple of 1 / ODR
where ODR (the output data rate) is of type DataRate
.
sourcepub fn miliseconds(output_data_rate: DataRate, miliseconds: f32) -> Self
pub fn miliseconds(output_data_rate: DataRate, miliseconds: f32) -> Self
Convert a number of miliseconds into a duration. Internally a duration is represented
as a multiple of 1 / ODR
where ODR (the output data rate) is of type DataRate
.
pub const ZERO: Self = _
Trait Implementations§
source§impl PartialEq for Duration
impl PartialEq for Duration
impl Copy for Duration
impl Eq for Duration
impl StructuralPartialEq for Duration
Auto Trait Implementations§
impl Freeze for Duration
impl RefUnwindSafe for Duration
impl Send for Duration
impl Sync for Duration
impl Unpin for Duration
impl UnwindSafe for Duration
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<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)