[][src]Enum map_model::EditCmd

pub enum EditCmd {
    ChangeRoad {
        r: RoadID,
        old: EditRoad,
        new: EditRoad,
    },
    ChangeIntersection {
        i: IntersectionID,
        new: EditIntersection,
        old: EditIntersection,
    },
    ChangeRouteSchedule {
        id: BusRouteID,
        old: Vec<Time>,
        new: Vec<Time>,
    },
}

Variants

ChangeRoad

Fields of ChangeRoad

r: RoadIDold: EditRoadnew: EditRoad
ChangeIntersection

Fields of ChangeIntersection

i: IntersectionIDnew: EditIntersectionold: EditIntersection
ChangeRouteSchedule

Fields of ChangeRouteSchedule

id: BusRouteIDold: Vec<Time>new: Vec<Time>

Implementations

impl EditCmd[src]

pub(crate) fn to_perma(&self, map: &Map) -> PermanentEditCmd[src]

impl EditCmd[src]

pub fn describe(&self, map: &Map) -> (String, Vec<String>)[src]

fn apply(&self, effects: &mut EditEffects, map: &mut Map, timer: &mut Timer)[src]

fn undo(self) -> EditCmd[src]

Trait Implementations

impl Clone for EditCmd[src]

impl Debug for EditCmd[src]

impl PartialEq<EditCmd> for EditCmd[src]

impl StructuralPartialEq for EditCmd[src]

Auto Trait Implementations

impl RefUnwindSafe for EditCmd

impl Send for EditCmd

impl Sync for EditCmd

impl Unpin for EditCmd

impl UnwindSafe for EditCmd

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>,