pub struct Zone {
pub members: BTreeSet<RoadID>,
pub borders: BTreeSet<IntersectionID>,
pub restrictions: AccessRestrictions,
}
Expand description
A contiguous set of roads with access restrictions. This is derived from all the map’s roads and kept cached for performance.
Fields§
§members: BTreeSet<RoadID>
§borders: BTreeSet<IntersectionID>
§restrictions: AccessRestrictions
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Zone
impl<'de> Deserialize<'de> for Zone
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 Zone
impl PartialEq for Zone
impl StructuralPartialEq for Zone
Auto Trait Implementations§
impl Freeze for Zone
impl RefUnwindSafe for Zone
impl Send for Zone
impl Sync for Zone
impl Unpin for Zone
impl UnwindSafe for Zone
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