#[repr(C)]pub struct acc_hal_optimization_t {
pub transfer16: acc_hal_sensor_transfer16_function_t,
}Expand description
@brief This struct contains function pointers that are optional to support different optimizations
Optional
This struct contains function pointers to support different optimizations. These optimizations can be utilized for some integrations. If they are defined, they will override the corresponding non-optimized function.
For example, if the transfer16 function is implemented, it will be used instead of the transfer function.
Fields§
§transfer16: acc_hal_sensor_transfer16_function_tTrait Implementations§
Source§impl Clone for acc_hal_optimization_t
impl Clone for acc_hal_optimization_t
Source§fn clone(&self) -> acc_hal_optimization_t
fn clone(&self) -> acc_hal_optimization_t
Returns a duplicate 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 moreSource§impl Debug for acc_hal_optimization_t
impl Debug for acc_hal_optimization_t
impl Copy for acc_hal_optimization_t
Auto Trait Implementations§
impl Freeze for acc_hal_optimization_t
impl RefUnwindSafe for acc_hal_optimization_t
impl Send for acc_hal_optimization_t
impl Sync for acc_hal_optimization_t
impl Unpin for acc_hal_optimization_t
impl UnwindSafe for acc_hal_optimization_t
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