Trait rust_3d::traits::IsRandomInsertible
[−]
[src]
pub trait IsRandomInsertible<T>: IsRandomAccessible<T> { fn push(&mut self, x: T); fn insert(&mut self, index: usize, x: T) -> Result<()>; }
IsRandomInsertible is a trait used for collections of elements which are random insertible
Required Methods
fn push(&mut self, x: T)
Should push an element to the end of collection
fn insert(&mut self, index: usize, x: T) -> Result<()>
Should insert an element at the given index
Implementations on Foreign Types
impl<T> IsRandomInsertible<T> for Vec<T>
[src]
impl<T> IsRandomInsertible<T> for VecDeque<T>
[src]
Implementors
impl<P> IsRandomInsertible<P> for PointCloud2D<P> where
P: Is2D,impl<P> IsRandomInsertible<P> for PointCloud3D<P> where
P: Is3D,