AddStep

Trait AddStep 

Source
pub trait AddStep<T = Self>: StepWith<T> {
    // Required method
    fn add_step(&mut self) -> Self::Output;
}
Expand description

AddStep is a trait that defines a method to add a step to the current value, replacing

Required Methods§

Source

fn add_step(&mut self) -> Self::Output

computes the next value by adding a step to the current one, replacing and returning it

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<T> AddStep for T
where T: One + StepWith<T>, for<'a> &'a T: Add<T, Output = T>,