Enum sim::pandemic::State[][src]

pub enum State {
    Sane((Event, Time)),
    Exposed((Event, Time)),
    Infectious((Event, Time)),
    Hospitalized((Event, Time)),
    Recovered(Time),
    Dead(Time),
}

Variants

Sane((Event, Time))
Exposed((Event, Time))
Infectious((Event, Time))
Hospitalized((Event, Time))
Recovered(Time)
Dead(Time)

Implementations

impl State[src]

const T_INF: f64[src]

const T_INC: f64[src]

const R_0: f64[src]

const E_RATIO: f64[src]

const I_RATIO: f64[src]

pub fn ini_infectious_ratio() -> f64[src]

pub fn ini_exposed_ratio() -> f64[src]

fn new(p_hosp: f64, p_death: f64) -> Self[src]

fn get_time_exp(lambda: f64, rng: &mut XorShiftRng) -> Duration[src]

fn get_time_normal(mu: f64, sigma: f64, rng: &mut XorShiftRng) -> Duration[src]

fn is_sane(&self) -> bool[src]

fn is_exposed(&self) -> bool[src]

fn is_infectious(&self) -> bool[src]

fn is_recovered(&self) -> bool[src]

fn is_dead(&self) -> bool[src]

pub fn get_time(&self) -> Option<Time>[src]

pub fn get_event_time(&self) -> Option<AnyTime>[src]

pub fn next_default(
    self,
    default: AnyTime,
    rng: &mut XorShiftRng
) -> Option<Self>
[src]

pub fn next(self, now: AnyTime, rng: &mut XorShiftRng) -> Option<Self>[src]

pub fn start(
    self,
    now: AnyTime,
    overlap: Duration,
    rng: &mut XorShiftRng
) -> Result<Self>
[src]

Trait Implementations

impl Clone for State[src]

impl Debug for State[src]

Auto Trait Implementations

impl RefUnwindSafe for State

impl Send for State

impl Sync for State

impl Unpin for State

impl UnwindSafe for State

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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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