pub struct MobilePerceivedObject {
pub perceived_object: PerceivedObject,
pub mobile_id: u32,
pub reference_position: ReferencePosition,
pub speed: u16,
pub heading: u16,
}Fields§
§perceived_object: PerceivedObject§mobile_id: u32§reference_position: ReferencePosition§speed: u16§heading: u16Trait Implementations§
Source§impl Clone for MobilePerceivedObject
impl Clone for MobilePerceivedObject
Source§fn clone(&self) -> MobilePerceivedObject
fn clone(&self) -> MobilePerceivedObject
Returns a copy 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 MobilePerceivedObject
impl Debug for MobilePerceivedObject
Source§impl<'de> Deserialize<'de> for MobilePerceivedObject
impl<'de> Deserialize<'de> for MobilePerceivedObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for MobilePerceivedObject
impl Hash for MobilePerceivedObject
Source§impl Mobile for MobilePerceivedObject
impl Mobile for MobilePerceivedObject
fn mobile_id(&self) -> u32
fn position(&self) -> &ReferencePosition
fn speed(&self) -> Option<u16>
fn heading(&self) -> Option<u16>
fn stopped(&self) -> bool
fn heading_in_degrees(&self) -> Option<f64>
fn speed_in_meter_per_second(&self) -> Option<f64>
fn speed_in_kilometer_per_hour(&self) -> Option<f64>
Source§impl PartialEq for MobilePerceivedObject
impl PartialEq for MobilePerceivedObject
Auto Trait Implementations§
impl Freeze for MobilePerceivedObject
impl RefUnwindSafe for MobilePerceivedObject
impl Send for MobilePerceivedObject
impl Sync for MobilePerceivedObject
impl Unpin for MobilePerceivedObject
impl UnwindSafe for MobilePerceivedObject
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