RollFunction

Trait RollFunction 

Source
pub trait RollFunction: Copy + Default {
    type State: PermutationState;

    // Required method
    fn apply(self, state: &mut Self::State);
}
Expand description

A rolling function as used in the Farfalle construction.

Required Associated Types§

Source

type State: PermutationState

The state this rolling function acts upon.

Required Methods§

Source

fn apply(self, state: &mut Self::State)

Apply the rolling function to the state.

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§