pub fn new(dim: usize, data: Box<[f32]>) -> Result<DataRam, PointCloudError> {
        assert!(data.len()%dim == 0);
        let name = "RAM".to_string();
        Ok(DataRam { name, data, dim })
    }
/// Consumes your box and dimension and gives a dimensioned box. 
Consumes your box and dimension and gives a dimensioned box.
Consumes your box and dimension and gives a dimensioned box .
pub fn new(dim: usize, data: Box<[f32]>) -> Result<DataRam, PointCloudError> {
        assert!(data.len()%dim == 0);
        let name = "RAM".to_string();
        Ok(DataRam { name, data, dim })
    }
pub fn new ( dim : usize , data : Box < [ f32 ] > ) -> Result < DataRam , PointCloudError > { assert ! ( data len ( ) dim 0 ) ; let name = " " . to_string ( ) ; Ok ( DataRam { name , data , dim } ) }
Consumes your box and dimension and gives a dimensioned box.
Consumes your box and dimension and gives a dimensioned box .
dim
usize
data
Box<[f32]>
dim
usize
data
Box<[f32]>