Enum vapjson::spec::step_duration::StepDuration[][src]

pub enum StepDuration {
    Single(Uint),
    Transitions(BTreeMap<Uint, Uint>),
}

Step duration can be specified either as a Uint (in seconds), in which case it will be constant, or as a list of pairs consisting of a timestamp of type Uint and a duration, in which case the duration of a step will be determined by a mapping arising from that list.

Variants

Single(Uint)

Duration of all steps.

Transitions(BTreeMap<Uint, Uint>)

Step duration transitions: a mapping of timestamp to step durations.

Trait Implementations

impl Debug for StepDuration[src]

impl<'de> Deserialize<'de> for StepDuration[src]

impl PartialEq<StepDuration> for StepDuration[src]

impl StructuralPartialEq for StepDuration[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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