Enum cnetworks::LinkWeight[][src]

pub enum LinkWeight {
    Constant {
        c: f64,

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



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

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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