pub trait MatTraitConstManual: MatTraitConst {
Show 14 methods // Provided methods unsafe fn at_unchecked<T: DataType>(&self, i0: i32) -> Result<&T> { ... } unsafe fn at_2d_unchecked<T: DataType>( &self, row: i32, col: i32 ) -> Result<&T> { ... } unsafe fn at_pt_unchecked<T: DataType>(&self, pt: Point) -> Result<&T> { ... } unsafe fn at_3d_unchecked<T: DataType>( &self, i0: i32, i1: i32, i2: i32 ) -> Result<&T> { ... } unsafe fn at_nd_unchecked<T: DataType>(&self, idx: &[i32]) -> Result<&T> { ... } fn at_row<T: DataType>(&self, row: i32) -> Result<&[T]> { ... } unsafe fn at_row_unchecked<T: DataType>(&self, row: i32) -> Result<&[T]> { ... } fn size(&self) -> Result<Size> { ... } fn is_allocated(&self) -> bool { ... } fn data(&self) -> *const u8 { ... } fn data_bytes(&self) -> Result<&[u8]> { ... } fn data_typed<T: DataType>(&self) -> Result<&[T]> { ... } unsafe fn data_typed_unchecked<T: DataType>(&self) -> Result<&[T]> { ... } fn to_vec_2d<T: DataType>(&self) -> Result<Vec<Vec<T>>> { ... }
}

Provided Methods§

source

unsafe fn at_unchecked<T: DataType>(&self, i0: i32) -> Result<&T>

Like Mat::at() but performs no bounds or type checks

Safety

Caller must ensure that index is within Mat bounds

source

unsafe fn at_2d_unchecked<T: DataType>(&self, row: i32, col: i32) -> Result<&T>

Like Mat::at_2d() but performs no bounds or type checks

Safety

Caller must ensure that indices are within Mat bounds

source

unsafe fn at_pt_unchecked<T: DataType>(&self, pt: Point) -> Result<&T>

Like Mat::at_pt() but performs no bounds or type checks

Safety

Caller must ensure that point is within Mat bounds

source

unsafe fn at_3d_unchecked<T: DataType>( &self, i0: i32, i1: i32, i2: i32 ) -> Result<&T>

Like Mat::at_3d() but performs no bounds or type checks

Safety

Caller must ensure that indices are within Mat bounds

source

unsafe fn at_nd_unchecked<T: DataType>(&self, idx: &[i32]) -> Result<&T>

Like Mat::at_nd() but performs no bounds or type checks

Safety

Caller must ensure that indices are within Mat bounds

source

fn at_row<T: DataType>(&self, row: i32) -> Result<&[T]>

Return a complete read-only row

source

unsafe fn at_row_unchecked<T: DataType>(&self, row: i32) -> Result<&[T]>

Like Mat::at_row() but performs no bounds or type checks

Safety

Caller must ensure that index is within Mat bounds

source

fn size(&self) -> Result<Size>

source

fn is_allocated(&self) -> bool

source

fn data(&self) -> *const u8

Raw pointer to the underlying data array, can be NULL

source

fn data_bytes(&self) -> Result<&[u8]>

Returns underlying data array as byte slice, Mat must be continuous.

source

fn data_typed<T: DataType>(&self) -> Result<&[T]>

source

unsafe fn data_typed_unchecked<T: DataType>(&self) -> Result<&[T]>

Safety

Caller must ensure that the T type argument corresponds to the data stored in the Mat

source

fn to_vec_2d<T: DataType>(&self) -> Result<Vec<Vec<T>>>

Implementors§