#[non_exhaustive]pub struct RouteWaypoint {
pub ident: Option<String>,
pub position: GeoPoint,
}Expand description
One ordered point on a route: an identifier when published, always a position.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ident: Option<String>Published identifier ("KEWR", "PSB"), None for a bare
lat/lon point.
position: GeoPointWGS84 position.
Implementations§
Source§impl RouteWaypoint
impl RouteWaypoint
Trait Implementations§
Source§impl Clone for RouteWaypoint
impl Clone for RouteWaypoint
Source§fn clone(&self) -> RouteWaypoint
fn clone(&self) -> RouteWaypoint
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 moreSource§impl Debug for RouteWaypoint
impl Debug for RouteWaypoint
Source§impl<'de> Deserialize<'de> for RouteWaypoint
impl<'de> Deserialize<'de> for RouteWaypoint
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 PartialEq for RouteWaypoint
impl PartialEq for RouteWaypoint
Source§fn eq(&self, other: &RouteWaypoint) -> bool
fn eq(&self, other: &RouteWaypoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RouteWaypoint
impl Serialize for RouteWaypoint
impl StructuralPartialEq for RouteWaypoint
Auto Trait Implementations§
impl Freeze for RouteWaypoint
impl RefUnwindSafe for RouteWaypoint
impl Send for RouteWaypoint
impl Sync for RouteWaypoint
impl Unpin for RouteWaypoint
impl UnsafeUnpin for RouteWaypoint
impl UnwindSafe for RouteWaypoint
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