pub trait IterationStrategy<T, U> {
// Required methods
fn ref_iter(value: &U) -> impl Iterator<Item = T> + Send + Clone + '_;
fn value_iter(value: U) -> impl Iterator<Item = T> + Send + Clone;
fn slice_iter(slice: &[U]) -> impl Iterator<Item = T> + Send + Clone + '_;
}
Expand description
The iteration strategy for the given underlier type ‘U’ that is treated as a packed collection of ’T’s.
Required Methods§
Sourcefn ref_iter(value: &U) -> impl Iterator<Item = T> + Send + Clone + '_
fn ref_iter(value: &U) -> impl Iterator<Item = T> + Send + Clone + '_
Iterate over the subvalues of the given reference.
Sourcefn value_iter(value: U) -> impl Iterator<Item = T> + Send + Clone
fn value_iter(value: U) -> impl Iterator<Item = T> + Send + Clone
Iterate over the subvalues of the given 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.