Enum map_model::TurnPriority
source · pub enum TurnPriority {
Banned,
Yield,
Protected,
}
Variants§
Banned
For stop signs: Can’t currently specify this! For traffic signals: Can’t do this turn right now.
Yield
For stop signs: cars have to stop before doing this turn, and are accepted with the lowest priority. For traffic signals: Cars can do this immediately if there are no previously accepted conflicting turns.
Protected
For stop signs: cars can do this without stopping. These can conflict! For traffic signals: Must be non-conflicting.
Trait Implementations§
source§impl Clone for TurnPriority
impl Clone for TurnPriority
source§fn clone(&self) -> TurnPriority
fn clone(&self) -> TurnPriority
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 TurnPriority
impl Debug for TurnPriority
source§impl<'de> Deserialize<'de> for TurnPriority
impl<'de> Deserialize<'de> for TurnPriority
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 TurnPriority
impl PartialEq for TurnPriority
source§fn eq(&self, other: &TurnPriority) -> bool
fn eq(&self, other: &TurnPriority) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TurnPriority
impl PartialOrd for TurnPriority
source§fn partial_cmp(&self, other: &TurnPriority) -> Option<Ordering>
fn partial_cmp(&self, other: &TurnPriority) -> 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 TurnPriority
impl Serialize for TurnPriority
impl Copy for TurnPriority
impl StructuralPartialEq for TurnPriority
Auto Trait Implementations§
impl Freeze for TurnPriority
impl RefUnwindSafe for TurnPriority
impl Send for TurnPriority
impl Sync for TurnPriority
impl Unpin for TurnPriority
impl UnwindSafe for TurnPriority
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