Struct map_model::edits::perma_traffic_signal::Stage
source · pub struct Stage {
pub protected_turns: BTreeSet<Turn>,
pub permitted_turns: BTreeSet<Turn>,
pub stage_type: StageType,
}
Expand description
A traffic signal is in one stage at any time. The stage describes what movements are possible.
Fields§
§protected_turns: BTreeSet<Turn>
During this stage, these turns can be performed with the highest priority, protected by a green light. No two protected turns in the same stage should cross; that would be a conflict.
permitted_turns: BTreeSet<Turn>
During this stage, these turns can be performed after yielding. For example, an unprotected left turn after yielding to oncoming traffic, or a right turn on red after yielding to oncoming traffic and crosswalks.
stage_type: StageType
The stage lasts this long before moving to the next one.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Stage
impl<'de> Deserialize<'de> for Stage
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 Stage
impl PartialEq for Stage
impl StructuralPartialEq for Stage
Auto Trait Implementations§
impl RefUnwindSafe for Stage
impl Send for Stage
impl Sync for Stage
impl Unpin for Stage
impl UnwindSafe for Stage
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