openvm_algebra_guest

Trait Reduce

Source
pub trait Reduce: Sized {
    // Required method
    fn reduce_le_bytes(bytes: &[u8]) -> Self;

    // Provided method
    fn reduce_be_bytes(bytes: &[u8]) -> Self { ... }
}

Required Methods§

Source

fn reduce_le_bytes(bytes: &[u8]) -> Self

Interpret the given bytes as an integer and perform a modular reduction.

Provided Methods§

Source

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.

Implementors§