pub trait Vector<T>: Deref<Target = [T]> + DerefMut<Target = [T]> {
// Required methods
fn push(&mut self, item: T);
fn pop(&mut self) -> Option<T>;
fn truncate(&mut self, len: usize);
fn remove_range<R: RangeBounds<usize>>(&mut self, range: R);
}Required Methods§
fn push(&mut self, item: T)
fn pop(&mut self) -> Option<T>
fn truncate(&mut self, len: usize)
fn remove_range<R: RangeBounds<usize>>(&mut self, range: 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.