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 StructuralEq for Duration
impl StructuralPartialEq for Duration
Auto Trait Implementations§
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