Trait flatcontainer::impls::offsets::OffsetContainer
source · pub trait OffsetContainer<T>: Default + Extend<T> {
// Required methods
fn push(&mut self, item: T);
fn index(&self, index: usize) -> T;
fn clear(&mut self);
fn len(&self) -> usize;
fn reserve(&mut self, additional: usize);
fn heap_size<F: FnMut(usize, usize)>(&self, callback: F);
// Provided method
fn is_empty(&self) -> bool { ... }
}
Expand description
A container to store offsets.
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.