pub enum Location<EdgeId> {
Line(LineLocation<EdgeId>),
GeoCoordinate(Coordinate),
PointAlongLine(PointAlongLineLocation<EdgeId>),
Poi(PoiLocation<EdgeId>),
ClosedLine(ClosedLineLocation<EdgeId>),
}Expand description
Defines a location (in a map) that can be encoded using the OpenLR encoder and is also the result of the decoding process.
Variants§
Line(LineLocation<EdgeId>)
GeoCoordinate(Coordinate)
PointAlongLine(PointAlongLineLocation<EdgeId>)
Poi(PoiLocation<EdgeId>)
ClosedLine(ClosedLineLocation<EdgeId>)
Trait Implementations§
impl<EdgeId: PartialEq> StructuralPartialEq for Location<EdgeId>
Auto Trait Implementations§
impl<EdgeId> Freeze for Location<EdgeId>where
LineLocation<EdgeId>: Freeze,
PointAlongLineLocation<EdgeId>: Freeze,
PoiLocation<EdgeId>: Freeze,
ClosedLineLocation<EdgeId>: Freeze,
impl<EdgeId> RefUnwindSafe for Location<EdgeId>where
LineLocation<EdgeId>: RefUnwindSafe,
PointAlongLineLocation<EdgeId>: RefUnwindSafe,
PoiLocation<EdgeId>: RefUnwindSafe,
ClosedLineLocation<EdgeId>: RefUnwindSafe,
impl<EdgeId> Send for Location<EdgeId>where
LineLocation<EdgeId>: Send,
PointAlongLineLocation<EdgeId>: Send,
PoiLocation<EdgeId>: Send,
ClosedLineLocation<EdgeId>: Send,
impl<EdgeId> Sync for Location<EdgeId>where
LineLocation<EdgeId>: Sync,
PointAlongLineLocation<EdgeId>: Sync,
PoiLocation<EdgeId>: Sync,
ClosedLineLocation<EdgeId>: Sync,
impl<EdgeId> Unpin for Location<EdgeId>where
LineLocation<EdgeId>: Unpin,
PointAlongLineLocation<EdgeId>: Unpin,
PoiLocation<EdgeId>: Unpin,
ClosedLineLocation<EdgeId>: Unpin,
impl<EdgeId> UnsafeUnpin for Location<EdgeId>where
LineLocation<EdgeId>: UnsafeUnpin,
PointAlongLineLocation<EdgeId>: UnsafeUnpin,
PoiLocation<EdgeId>: UnsafeUnpin,
ClosedLineLocation<EdgeId>: UnsafeUnpin,
impl<EdgeId> UnwindSafe for Location<EdgeId>where
LineLocation<EdgeId>: UnwindSafe,
PointAlongLineLocation<EdgeId>: UnwindSafe,
PoiLocation<EdgeId>: UnwindSafe,
ClosedLineLocation<EdgeId>: UnwindSafe,
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