Enum synthpop::modifier::ScenarioModifier
source · pub enum ScenarioModifier {
RepeatDays(usize),
RepeatDaysNoise {
days: usize,
departure_time_noise: Duration,
},
ChangeMode {
pct_ppl: usize,
departure_filter: (Time, Time),
from_modes: BTreeSet<TripMode>,
to_mode: Option<TripMode>,
},
AddExtraTrips(String),
}
Expand description
Transforms an existing Scenario before instantiating it.
Variants§
RepeatDays(usize)
RepeatDaysNoise
ChangeMode
Fields
§
departure_filter: (Time, Time)
AddExtraTrips(String)
Scenario name
Implementations§
Trait Implementations§
source§impl Clone for ScenarioModifier
impl Clone for ScenarioModifier
source§fn clone(&self) -> ScenarioModifier
fn clone(&self) -> ScenarioModifier
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<'de> Deserialize<'de> for ScenarioModifier
impl<'de> Deserialize<'de> for ScenarioModifier
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 Ord for ScenarioModifier
impl Ord for ScenarioModifier
source§fn cmp(&self, other: &ScenarioModifier) -> Ordering
fn cmp(&self, other: &ScenarioModifier) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ScenarioModifier
impl PartialEq for ScenarioModifier
source§fn eq(&self, other: &ScenarioModifier) -> bool
fn eq(&self, other: &ScenarioModifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ScenarioModifier
impl PartialOrd for ScenarioModifier
source§fn partial_cmp(&self, other: &ScenarioModifier) -> Option<Ordering>
fn partial_cmp(&self, other: &ScenarioModifier) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ScenarioModifier
impl Serialize for ScenarioModifier
impl Eq for ScenarioModifier
impl StructuralPartialEq for ScenarioModifier
Auto Trait Implementations§
impl Freeze for ScenarioModifier
impl RefUnwindSafe for ScenarioModifier
impl Send for ScenarioModifier
impl Sync for ScenarioModifier
impl Unpin for ScenarioModifier
impl UnwindSafe for ScenarioModifier
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.