pub struct RadarFrame {
pub targets: [Target; 3],
}Expand description
A complete radar data frame containing up to 3 targets.
Fields§
§targets: [Target; 3]Implementations§
Source§impl RadarFrame
impl RadarFrame
Sourcepub fn active_count(&self) -> usize
pub fn active_count(&self) -> usize
Number of active (non-empty) targets.
Sourcepub fn from_bytes(data: &[u8; 24]) -> Self
pub fn from_bytes(data: &[u8; 24]) -> Self
Parse from 24 bytes of payload (3 × 8 bytes per target).
Trait Implementations§
Source§impl Clone for RadarFrame
impl Clone for RadarFrame
Source§fn clone(&self) -> RadarFrame
fn clone(&self) -> RadarFrame
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 RadarFrame
impl Debug for RadarFrame
Source§impl Default for RadarFrame
impl Default for RadarFrame
Source§fn default() -> RadarFrame
fn default() -> RadarFrame
Returns the “default value” for a type. Read more
Source§impl PartialEq for RadarFrame
impl PartialEq for RadarFrame
impl Copy for RadarFrame
impl Eq for RadarFrame
impl StructuralPartialEq for RadarFrame
Auto Trait Implementations§
impl Freeze for RadarFrame
impl RefUnwindSafe for RadarFrame
impl Send for RadarFrame
impl Sync for RadarFrame
impl Unpin for RadarFrame
impl UnsafeUnpin for RadarFrame
impl UnwindSafe for RadarFrame
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