pub trait IterableByValueFrom: IterableByValue {
type IterFrom<'a>: Iterator<Item = <Self as IterableByValue>::Item>
where Self: 'a;
// Required method
fn iter_value_from(&self, from: usize) -> Self::IterFrom<'_>;
}Expand description
A trait for obtaining a value-based iterator starting from a given position.
This is an version of IterableByValue::iter_value that is useful for
types in which obtaining a global iterator and skipping is expensive. Note
that we cannot provide a skip-based default implementation because the
returned type is not necessarily the same type as that returned by
IterableByValue::iter_value, but you are free to implement
iter_value_from that way.
Required Associated Types§
type IterFrom<'a>: Iterator<Item = <Self as IterableByValue>::Item> where Self: 'a
Required Methods§
Sourcefn iter_value_from(&self, from: usize) -> Self::IterFrom<'_>
fn iter_value_from(&self, from: usize) -> Self::IterFrom<'_>
Returns an iterator on values starting at the given position.
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.