pub trait Container: Clone {
// Required methods
fn slice(&self, offset: i64, len: usize) -> Self;
fn split_at(&self, offset: i64) -> (Self, Self);
fn len(&self) -> usize;
fn iter_chunks(&self) -> impl Iterator<Item = Self>;
fn n_chunks(&self) -> usize;
fn chunk_lengths(&self) -> impl Iterator<Item = usize>;
}
Required Methods§
fn slice(&self, offset: i64, len: usize) -> Self
fn split_at(&self, offset: i64) -> (Self, Self)
fn len(&self) -> usize
fn iter_chunks(&self) -> impl Iterator<Item = Self>
fn n_chunks(&self) -> usize
fn chunk_lengths(&self) -> impl Iterator<Item = usize>
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.