Function proptest::option::prob[][src]

pub fn prob(from: impl Into<Probability>) -> Probability

Creates a Probability from some value that is convertible into it.

Panics

Panics if the converted to probability would lie outside interval [0.0, 1.0]. Consult the Into (or From) implementations for more details.