pub trait IterationStrategy<T, U> {
// Required methods
fn ref_iter(value: &U) -> impl Iterator<Item = T> + Send + '_;
fn value_iter(value: U) -> impl Iterator<Item = T> + Send;
fn slice_iter(slice: &[U]) -> impl Iterator<Item = T> + Send + '_;
}
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 + '_
fn ref_iter(value: &U) -> impl Iterator<Item = T> + Send + '_
Iterate over the subvalues of the given reference.
Sourcefn value_iter(value: U) -> impl Iterator<Item = T> + Send
fn value_iter(value: U) -> impl Iterator<Item = T> + Send
Iterate over the subvalues of the given value.
Sourcefn slice_iter(slice: &[U]) -> impl Iterator<Item = T> + Send + '_
fn slice_iter(slice: &[U]) -> impl Iterator<Item = T> + Send + '_
Iterate over the subvalues of the given slice.
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.