Struct map_model::objects::traffic_signals::Stage
source · pub struct Stage {
pub protected_movements: BTreeSet<MovementID>,
pub yield_movements: BTreeSet<MovementID>,
pub stage_type: StageType,
}
Fields§
§protected_movements: BTreeSet<MovementID>
§yield_movements: BTreeSet<MovementID>
§stage_type: StageType
Implementations§
source§impl Stage
impl Stage
pub fn new() -> Stage
pub fn could_be_protected(&self, m1: MovementID, i: &Intersection) -> bool
pub fn get_priority_of_turn(&self, t: TurnID, i: &Intersection) -> TurnPriority
pub fn get_priority_of_movement(&self, m: MovementID) -> TurnPriority
pub fn edit_movement(&mut self, g: &Movement, pri: TurnPriority)
pub fn enforce_minimum_crosswalk_time(&mut self, movement: &Movement)
pub fn max_crosswalk_time(&self, i: &Intersection) -> Option<Duration>
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 Freeze for Stage
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