Trait StepWith Copy item path Source pub trait StepWith<T> {
type Output ;
// Required method
fn step_with <F>(&mut self, f: F) -> Self::Output
where F: FnOnce (&T ) -> T ;
}
Expand description StepWith
is a trait defining an interface that can be best described as a more flexible
take
method, however, instead of leaving the default value in place
of the previous one, it allows for a generator function to be provided.
This trait is not dyn compatible .
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Creates the next value by incrementing the current one using a generator function.
Creates the next value by incrementing the current one using a generator function.
Creates the next value by incrementing the current one using a generator function.
Creates the next value by incrementing the current one using a generator function.
Creates the next value by incrementing the current one using a generator function.
Creates the next value by incrementing the current one using a generator function.
Creates the next value by incrementing the current one using a generator function.
Creates the next value by incrementing the current one using a generator function.
Creates the next value by incrementing the current one using a generator function.
Creates the next value by incrementing the current one using a generator function.
Creates the next value by incrementing the current one using a generator function.
Creates the next value by incrementing the current one using a generator function.
Creates the next value by incrementing the current one using a generator function.
Creates the next value by incrementing the current one using a generator function.