pub trait Step {
// Required methods
fn next(&mut self) -> IterationResult;
fn first() -> Self;
}Expand description
Impl this on a datatype that may be iterated by mutating the datum in place. This is then used by the library to perform bruteforce searches and such
Required Methods§
Sourcefn next(&mut self) -> IterationResult
fn next(&mut self) -> IterationResult
Advances the value to the next state.
Returns Ok(()) if the step was successful.
Returns Err(StepError::End) if the end has been reached.
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.