#[repr(u8)]pub enum DrivingManeuver {
Show 21 variants
Ferry = 0,
FerryTrain = 1,
ForkLeft = 2,
ForkRight = 3,
KeepLeft = 4,
KeepRight = 5,
Merge = 6,
Ramp = 7,
RampLeft = 8,
RampRight = 9,
RoundaboutLeft = 10,
RoundaboutRight = 11,
Straight = 12,
TurnLeft = 13,
TurnRight = 14,
TurnSharpLeft = 15,
TurnSharpRight = 16,
TurnSlightLeft = 17,
TurnSlightRight = 18,
UturnLeft = 19,
UturnRight = 20,
}
Expand description
The action to take for the current step (turn left, merge, straight, etc.). This field is used to determine which icon to display. Values in this list are subject to change.
Variants§
Ferry = 0
FerryTrain = 1
ForkLeft = 2
ForkRight = 3
KeepLeft = 4
KeepRight = 5
Merge = 6
Ramp = 7
RampLeft = 8
RampRight = 9
RoundaboutLeft = 10
RoundaboutRight = 11
Straight = 12
TurnLeft = 13
TurnRight = 14
TurnSharpLeft = 15
TurnSharpRight = 16
TurnSlightLeft = 17
TurnSlightRight = 18
UturnLeft = 19
UturnRight = 20
Implementations§
Trait Implementations§
source§impl Clone for DrivingManeuver
impl Clone for DrivingManeuver
source§fn clone(&self) -> DrivingManeuver
fn clone(&self) -> DrivingManeuver
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 DrivingManeuver
impl Debug for DrivingManeuver
source§impl Default for DrivingManeuver
impl Default for DrivingManeuver
source§fn default() -> DrivingManeuver
fn default() -> DrivingManeuver
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DrivingManeuver
impl<'de> Deserialize<'de> for DrivingManeuver
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Manual implementation of Deserialize
for serde
. This will take
advantage of the phf
-powered TryFrom
implementation for this type.
source§impl Display for DrivingManeuver
impl Display for DrivingManeuver
source§impl From<&DrivingManeuver> for &str
impl From<&DrivingManeuver> for &str
source§fn from(maneuver_type: &DrivingManeuver) -> Self
fn from(maneuver_type: &DrivingManeuver) -> Self
Converts a DrivingManeuver
enum to a String
that contains a
maneuver
type
code.
source§impl From<&DrivingManeuver> for String
impl From<&DrivingManeuver> for String
source§fn from(driving_maneuver: &DrivingManeuver) -> Self
fn from(driving_maneuver: &DrivingManeuver) -> Self
Converts a DrivingManeuver
enum to a String
that contains a
maneuver
type
code.
source§impl FromStr for DrivingManeuver
impl FromStr for DrivingManeuver
source§impl Hash for DrivingManeuver
impl Hash for DrivingManeuver
source§impl Ord for DrivingManeuver
impl Ord for DrivingManeuver
source§fn cmp(&self, other: &DrivingManeuver) -> Ordering
fn cmp(&self, other: &DrivingManeuver) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DrivingManeuver
impl PartialEq for DrivingManeuver
source§fn eq(&self, other: &DrivingManeuver) -> bool
fn eq(&self, other: &DrivingManeuver) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DrivingManeuver
impl PartialOrd for DrivingManeuver
source§fn partial_cmp(&self, other: &DrivingManeuver) -> Option<Ordering>
fn partial_cmp(&self, other: &DrivingManeuver) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for DrivingManeuver
impl Serialize for DrivingManeuver
source§impl TryFrom<&str> for DrivingManeuver
impl TryFrom<&str> for DrivingManeuver
impl Eq for DrivingManeuver
impl StructuralPartialEq for DrivingManeuver
Auto Trait Implementations§
impl RefUnwindSafe for DrivingManeuver
impl Send for DrivingManeuver
impl Sync for DrivingManeuver
impl Unpin for DrivingManeuver
impl UnwindSafe for DrivingManeuver
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.