pub trait Buffer<'a>: Sized {
type Source;
type Item;
// Required methods
fn source(&self) -> Self::Source;
fn len(&self) -> usize;
fn get(&self, idx: usize) -> Option<BufferItem<'a, Self>>;
}Required Associated Types§
Required Methods§
fn source(&self) -> Self::Source
Sourcefn get(&self, idx: usize) -> Option<BufferItem<'a, Self>>
fn get(&self, idx: usize) -> Option<BufferItem<'a, Self>>
Get the item at [idx]
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.