UnsafeGet

Trait UnsafeGet 

Source
pub trait UnsafeGet: Copy {
    type Elem: Copy;

    // Required method
    unsafe fn unsafe_get(self, r: usize, c: usize) -> Self::Elem;
}
Expand description

Unsafe indexing

Required Associated Types§

Source

type Elem: Copy

The matrix element type

Required Methods§

Source

unsafe fn unsafe_get(self, r: usize, c: usize) -> Self::Elem

Returns the element at row r and column c with performing bounds checks

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, T, NROWS, NCOLS> UnsafeGet for &'a Mat<T, NROWS, NCOLS>
where NROWS: Mul<NCOLS> + Unsigned, NCOLS: Unsigned, Prod<NROWS, NCOLS>: ArrayLength<T>, T: Copy,

Source§

type Elem = T

Source§

impl<M> UnsafeGet for Transpose<M>
where M: Matrix,

Source§

type Elem = <M as UnsafeGet>::Elem

Source§

impl<T, L, R> UnsafeGet for Product<L, R>
where L: Matrix<Elem = T>, R: Matrix<Elem = T>, T: Add<T, Output = T> + Mul<T, Output = T> + Copy + Zero,

Source§

type Elem = T

Source§

impl<T, L, R> UnsafeGet for Sum<L, R>
where L: Matrix<Elem = T>, R: Matrix<Elem = T>, T: Add<T, Output = T> + Copy,

Source§

type Elem = T