pub trait ArrayAccessor<Item: ?Sized> {
// Required method
fn with_iterator<F, R>(&self, f: F) -> VortexResult<R>
where F: for<'a> FnOnce(&mut dyn Iterator<Item = Option<&'a Item>>) -> R;
}
Expand description
Trait for arrays that support iterative access to their elements.
Required Methods§
Sourcefn with_iterator<F, R>(&self, f: F) -> VortexResult<R>
fn with_iterator<F, R>(&self, f: F) -> VortexResult<R>
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.