Enum cnetworks::LinkWeight[][src]

pub enum LinkWeight {
    Constant {
        c: f64,
    },
    Uniform,
}

LinkWeight determines the weight (ie. the probability of infection) of each link in the network.

Variants

Constant

The probability should be constant end equalt to c. Keep in mind that 0 < c <= 1, the Network constructor will panic if that is not the case.

Show fields

Fields of Constant

c: f64
Uniform

A weight sampled uniformly from (0, 1).

Trait Implementations

impl Clone for LinkWeight[src]

impl Debug for LinkWeight[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> 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>,