pub struct Position {
pub lon: f64,
pub lat: f64,
pub alt: f64,
}
Expand description
Represents a world position, can be constructed from NavPosLlh and NavPvt packets.
Fields§
§lon: f64
Logitude in degrees
lat: f64
Latitude in degrees
alt: f64
Altitude in meters
Trait Implementations§
source§impl<'de> Deserialize<'de> for Position
impl<'de> Deserialize<'de> for Position
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§fn from(packet: &NavHpPosLlhRef<'a>) -> Self
fn from(packet: &NavHpPosLlhRef<'a>) -> Self
Converts to this type from the input type.
source§fn from(packet: &NavPosLlhRef<'a>) -> Self
fn from(packet: &NavPosLlhRef<'a>) -> Self
Converts to this type from the input type.
impl Copy for Position
Auto Trait Implementations§
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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