binius_hash::permutation

Trait Permutation

Source
pub trait Permutation<T: Clone>: Clone + Sync {
    // Required method
    fn permute_mut(&self, input: &mut T);

    // Provided method
    fn permute(&self, input: T) -> T { ... }
}
Expand description

A permutation in the mathematical sense.

Required Methods§

Source

fn permute_mut(&self, input: &mut T)

Provided Methods§

Source

fn permute(&self, input: T) -> T

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 Permutation<[BinaryField32b; 24]> for Vision32bPermutation

Source§

impl Permutation<[ScaledPackedField<PackedPrimitiveType<M128, AESTowerField32b>, 2>; 3]> for Vision32bPermutation