ProbabilisticType

Trait ProbabilisticType 

Source
pub trait ProbabilisticType:
    IntoSampledValue
    + FromSampledValue
    + Clone
    + Send
    + Sync
    + 'static {
    // Required method
    fn default_value() -> Self;
}

Required Methods§

Source

fn default_value() -> Self

Provides a default or zero-equivalent value for the type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ProbabilisticType for bool

Source§

impl ProbabilisticType for f64

Implementors§