Struct map_model::objects::stop_signs::ControlStopSign
source · pub struct ControlStopSign {
pub id: IntersectionID,
pub roads: BTreeMap<RoadID, RoadWithStopSign>,
}
Fields§
§id: IntersectionID
§roads: BTreeMap<RoadID, RoadWithStopSign>
Only roads incoming to the intersection are listed here.
Implementations§
source§impl ControlStopSign
impl ControlStopSign
pub fn new(map: &Map, id: IntersectionID) -> ControlStopSign
sourcepub fn get_priority(&self, turn: TurnID, map: &Map) -> TurnPriority
pub fn get_priority(&self, turn: TurnID, map: &Map) -> TurnPriority
Get the priority of a turn according to the stop sign – either protected or yield, never banned.
pub fn flip_sign(&mut self, r: RoadID)
Trait Implementations§
source§impl Clone for ControlStopSign
impl Clone for ControlStopSign
source§fn clone(&self) -> ControlStopSign
fn clone(&self) -> ControlStopSign
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 ControlStopSign
impl Debug for ControlStopSign
source§impl<'de> Deserialize<'de> for ControlStopSign
impl<'de> Deserialize<'de> for ControlStopSign
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 ControlStopSign
impl PartialEq for ControlStopSign
source§fn eq(&self, other: &ControlStopSign) -> bool
fn eq(&self, other: &ControlStopSign) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ControlStopSign
impl Serialize for ControlStopSign
impl StructuralPartialEq for ControlStopSign
Auto Trait Implementations§
impl Freeze for ControlStopSign
impl RefUnwindSafe for ControlStopSign
impl Send for ControlStopSign
impl Sync for ControlStopSign
impl Unpin for ControlStopSign
impl UnwindSafe for ControlStopSign
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