[][src]Enum map_model::edits::EditCmd

pub enum EditCmd {
    ChangeLaneType {
        id: LaneID,
        lt: LaneType,
        orig_lt: LaneType,
    },
    ReverseLane {
        l: LaneID,
        dst_i: IntersectionID,
    },
    ChangeSpeedLimit {
        id: RoadID,
        new: Speed,
        old: Speed,
    },
    ChangeIntersection {
        i: IntersectionID,
        new: EditIntersection,
        old: EditIntersection,
    },
    ChangeAccessRestrictions {
        id: RoadID,
        new: AccessRestrictions,
        old: AccessRestrictions,
    },
    ChangeRouteSchedule {
        id: BusRouteID,
        old: Vec<Time>,
        new: Vec<Time>,
    },
}

Variants

ChangeLaneType

Fields of ChangeLaneType

id: LaneIDlt: LaneTypeorig_lt: LaneType
ReverseLane

Fields of ReverseLane

l: LaneIDdst_i: IntersectionID
ChangeSpeedLimit

Fields of ChangeSpeedLimit

id: RoadIDnew: Speedold: Speed
ChangeIntersection

Fields of ChangeIntersection

i: IntersectionIDnew: EditIntersectionold: EditIntersection
ChangeAccessRestrictions

Fields of ChangeAccessRestrictions

id: RoadIDnew: AccessRestrictionsold: AccessRestrictions
ChangeRouteSchedule

Fields of ChangeRouteSchedule

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

Implementations

impl EditCmd[src]

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

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

fn undo(
    &self,
    effects: &mut EditEffects,
    map: &mut Map,
    timer: &mut Timer
) -> bool
[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>,