Enum map_model::edits::perma_traffic_signal::StageType
source · pub enum StageType {
Fixed(usize),
Variable(usize, usize, usize),
}
Expand description
How long a stage lasts before moving to the next one.
Variants§
Fixed(usize)
A fixed number of seconds.
Variable(usize, usize, usize)
Minimum, Delay, Additional Minimum is the minimum cycle duration, 0 allows it to be skipped if no demand. Delay is the duration with no demand needed to end a cycle, 0 ends as soon as there is no demand. Additional is the maximum additional duration for an extended cycle. If minimum is 20, and additional is 40, the maximum cycle duration is 60. If there are crosswalks, the minimum is the minimum for the maximum crosswalks
Trait Implementations§
source§impl<'de> Deserialize<'de> for StageType
impl<'de> Deserialize<'de> for StageType
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 StageType
impl PartialEq for StageType
impl StructuralPartialEq for StageType
Auto Trait Implementations§
impl Freeze for StageType
impl RefUnwindSafe for StageType
impl Send for StageType
impl Sync for StageType
impl Unpin for StageType
impl UnwindSafe for StageType
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