pub trait ZeroCopyExt<'a> {
// Required methods
fn iter_zero_copy(&'a self) -> ZeroCopyIterator<'a> ⓘ;
fn iter_zero_copy_prefetching(&'a self) -> PrefetchingZeroCopyIterator<'a> ⓘ;
}Expand description
Extension trait for adding zero-copy iteration methods.
Required Methods§
Sourcefn iter_zero_copy(&'a self) -> ZeroCopyIterator<'a> ⓘ
fn iter_zero_copy(&'a self) -> ZeroCopyIterator<'a> ⓘ
Get a zero-copy iterator over the data.
Sourcefn iter_zero_copy_prefetching(&'a self) -> PrefetchingZeroCopyIterator<'a> ⓘ
fn iter_zero_copy_prefetching(&'a self) -> PrefetchingZeroCopyIterator<'a> ⓘ
Get a zero-copy iterator with prefetching.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".