#[repr(C)]pub struct SampleNode {
pub intensity: u8,
pub distance_low: u8,
pub distance_high_and_flag: u8,
}Expand description
Each sample in a scan packet contains distance and intensity information.
Fields§
§intensity: u8Signal intensity (0-255).
distance_low: u8Low byte of distance value.
distance_high_and_flag: u8High byte of distance and flag bits.
Implementations§
Trait Implementations§
Source§impl Clone for SampleNode
impl Clone for SampleNode
Source§fn clone(&self) -> SampleNode
fn clone(&self) -> SampleNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SampleNode
Auto Trait Implementations§
impl Freeze for SampleNode
impl RefUnwindSafe for SampleNode
impl Send for SampleNode
impl Sync for SampleNode
impl Unpin for SampleNode
impl UnsafeUnpin for SampleNode
impl UnwindSafe for SampleNode
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