pub trait Reduce: Sized {
// Required method
fn reduce_le_bytes(bytes: &[u8]) -> Self;
// Provided method
fn reduce_be_bytes(bytes: &[u8]) -> Self { ... }
}
Required Methods§
Sourcefn reduce_le_bytes(bytes: &[u8]) -> Self
fn reduce_le_bytes(bytes: &[u8]) -> Self
Interpret the given bytes as an integer and perform a modular reduction.
Provided Methods§
fn reduce_be_bytes(bytes: &[u8]) -> Self
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.