BarrettReduce

Trait BarrettReduce 

Source
pub trait BarrettReduce: Unsigned {
    const SHIFT: usize;
    const MULTIPLIER: u64;

    // Provided method
    fn reduce(x: u32) -> u32 { ... }
}

Required Associated Constants§

Provided Methods§

Source

fn reduce(x: u32) -> u32

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§