Step

Trait Step 

Source
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§

Source

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.

Source

fn first() -> Self

Returns the first value

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 Step for strop::armv4t::isa::Insn

Source§

impl Step for strop::m6809::Insn

Source§

impl Step for strop::mips::Insn

Source§

impl Step for strop::z80::Insn

Source§

impl<Params, RetVal> Step for SdccCall1<Params, RetVal>

Source§

impl<Params: Copy + Vals + Parameters, RetVal: Copy + Vals + ReturnValue> Step for O32<Params, RetVal>

Source§

impl<T: Clone + Step> Step for Sequence<T>

Source§

impl<T: Step + Clone + Disassemble> Step for Trace<T>

Source§

impl<V: Variant> Step for strop::m6502::Insn<V>