Struct vl53l1x_uld::threshold::Threshold
source · [−]Expand description
Threshold sturcture defining a threshold.
Fields
low: u16
The lower bound of the threshold window.
high: u16
The upper bound of the threshold window.
window: Window
The window thresholding behavior.
Implementations
sourceimpl Threshold
impl Threshold
sourcepub fn new(low: u16, high: u16, window: Window) -> Self
pub fn new(low: u16, high: u16, window: Window) -> Self
Create a new threshold with the given low threshold, high threshold and applied to the given window.
Arguments
low
- Lower bound of the threshold window.high
- Upper bound of the threshold window.window
- The window thresholding behavior.
Auto Trait Implementations
impl RefUnwindSafe for Threshold
impl Send for Threshold
impl Sync for Threshold
impl Unpin for Threshold
impl UnwindSafe for Threshold
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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