Struct wkwrap::mat::Mat
[−]
[src]
pub struct Mat<'a> { pub shape: Vec3, pub voxel_size: usize, pub voxel_type: VoxelType, // some fields omitted }
Fields
shape: Vec3
voxel_size: usize
voxel_type: VoxelType
Methods
impl<'a> Mat<'a>
[src]
pub fn new(
data: &mut [u8],
shape: Vec3,
voxel_size: usize,
voxel_type: VoxelType
) -> Result<Mat>
[src]
data: &mut [u8],
shape: Vec3,
voxel_size: usize,
voxel_type: VoxelType
) -> Result<Mat>
pub fn as_slice(&self) -> &[u8]
[src]
pub fn as_mut_slice(&mut self) -> &mut [u8]
[src]
pub fn as_mut_ptr(&mut self) -> *mut u8
[src]
pub fn copy_from(
&mut self,
dst_pos: Vec3,
src: &Mat,
src_box: Box3
) -> Result<()>
[src]
&mut self,
dst_pos: Vec3,
src: &Mat,
src_box: Box3
) -> Result<()>