[][src]Trait rust_3d::IsDataContainer

pub trait IsDataContainer<T> {
    fn reserve_d(&mut self, n: usize);
fn len_d(&self) -> usize;
fn push_d(&mut self, x: T);
fn get_d(&self, index: usize) -> T;
fn set_d(&mut self, index: usize, x: T); }

IsDataContainer trait used for data containers allowing for different storage types than using the abstracted type

Required methods

fn reserve_d(&mut self, n: usize)

Should reserve space for n elements of type T

fn len_d(&self) -> usize

Should return the number of T elements in the container

fn push_d(&mut self, x: T)

Should push a T to the end of the container

fn get_d(&self, index: usize) -> T

Should return the element at index

fn set_d(&mut self, index: usize, x: T)

Should set the element at index

Loading content...

Implementors

impl<P> IsDataContainer<P> for PointCloud2D<P> where
    P: IsBuildable2D + Clone
[src]

impl<P> IsDataContainer<P> for PointCloud3D<P> where
    P: IsBuildable3D + Clone
[src]

impl<P> IsDataContainer<P> for PointCloud3Df32<P> where
    P: IsBuildable3D
[src]

Loading content...