[][src]Struct map_model::MapEdits

pub struct MapEdits {
    pub edits_name: String,
    pub commands: Vec<EditCmd>,
    pub original_lts: BTreeMap<LaneID, LaneType>,
    pub reversed_lanes: BTreeSet<LaneID>,
    pub original_intersections: BTreeMap<IntersectionID, EditIntersection>,
    pub changed_speed_limits: BTreeSet<RoadID>,
    pub changed_access_restrictions: BTreeSet<RoadID>,
    pub changed_routes: BTreeSet<BusRouteID>,
    pub proposal_description: Vec<String>,
    pub proposal_link: Option<String>,
}

Fields

edits_name: Stringcommands: Vec<EditCmd>original_lts: BTreeMap<LaneID, LaneType>reversed_lanes: BTreeSet<LaneID>original_intersections: BTreeMap<IntersectionID, EditIntersection>changed_speed_limits: BTreeSet<RoadID>changed_access_restrictions: BTreeSet<RoadID>changed_routes: BTreeSet<BusRouteID>proposal_description: Vec<String>proposal_link: Option<String>

Implementations

impl MapEdits[src]

pub fn new() -> MapEdits[src]

pub fn load(
    map: &Map,
    path: String,
    timer: &mut Timer
) -> Result<MapEdits, String>
[src]

fn save(&self, map: &Map)[src]

fn update_derived(&mut self, map: &Map)[src]

fn compress(&mut self, map: &Map)[src]

Trait Implementations

impl Clone for MapEdits[src]

impl Debug for MapEdits[src]

impl Default for MapEdits[src]

impl PartialEq<MapEdits> for MapEdits[src]

impl StructuralPartialEq for MapEdits[src]

Auto Trait Implementations

impl RefUnwindSafe for MapEdits

impl Send for MapEdits

impl Sync for MapEdits

impl Unpin for MapEdits

impl UnwindSafe for MapEdits

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,