pub struct Object<'a> {
pub name: &'a [u8],
pub live: bool,
pub timestamp: &'a [u8],
pub body: &'a [u8],
}Expand description
APRS object report fields.
Fields§
§name: &'a [u8]Nine-byte object name.
live: boolWhether the object is live (*) rather than killed (_).
timestamp: &'a [u8]Seven-byte object timestamp.
body: &'a [u8]Remaining object body bytes.
Implementations§
Source§impl<'a> Object<'a>
impl<'a> Object<'a>
Sourcepub fn coordinates(&self) -> Option<Coordinates>
pub fn coordinates(&self) -> Option<Coordinates>
Returns object coordinates when the object body starts with a supported APRS position encoding.
Trait Implementations§
Source§impl<'a> PartialEq for Object<'a>
impl<'a> PartialEq for Object<'a>
impl<'a> Copy for Object<'a>
impl<'a> Eq for Object<'a>
impl<'a> StructuralPartialEq for Object<'a>
Auto Trait Implementations§
impl<'a> Freeze for Object<'a>
impl<'a> RefUnwindSafe for Object<'a>
impl<'a> Send for Object<'a>
impl<'a> Sync for Object<'a>
impl<'a> Unpin for Object<'a>
impl<'a> UnsafeUnpin for Object<'a>
impl<'a> UnwindSafe for Object<'a>
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