Trait NumProbability

Source
pub trait NumProbability<Rhs = Self, Output = Self>:
    Clone
    + Copy
    + From<usize>
    + Neg<Output = Output>
    + Add<Rhs, Output = Output>
    + Sub<Rhs, Output = Output>
    + Mul<Rhs, Output = Output>
    + Mul<usize, Output = Output>
    + Zero
    + One
    + PartialEq {
    const MOD: usize;
}
Expand description

確率の値となりうる数

Required Associated Constants§

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.

Implementors§

Source§

impl NumProbability for M107

Source§

const MOD: usize = 1_000_000_007usize

Source§

impl NumProbability for M998

Source§

const MOD: usize = 998_244_353usize