Struct rin::math::SliceStorageMut[][src]

pub struct SliceStorageMut<'a, N, R, C, RStride, CStride> where
    C: Dim,
    N: Scalar,
    R: Dim,
    RStride: Dim,
    CStride: Dim
{ /* fields omitted */ }

A mutable matrix data storage for mutable matrix slice. Only contains an internal mutable reference to another matrix data storage.

Implementations

impl<'a, N, R, C, RStride, CStride> SliceStorageMut<'a, N, R, C, RStride, CStride> where
    C: Dim,
    N: Scalar,
    R: Dim,
    RStride: Dim,
    CStride: Dim
[src]

pub unsafe fn from_raw_parts(
    ptr: *mut N,
    shape: (R, C),
    strides: (RStride, CStride)
) -> SliceStorageMut<'a, N, R, C, RStride, CStride> where
    RStride: Dim,
    CStride: Dim
[src]

Create a new matrix slice without bound checking and from a raw pointer.

impl<'a, N, R, C> SliceStorageMut<'a, N, R, C, Dynamic, Dynamic> where
    C: Dim,
    N: Scalar,
    R: Dim
[src]

pub unsafe fn new_unchecked<RStor, CStor, S>(
    storage: &'a mut S,
    start: (usize, usize),
    shape: (R, C)
) -> SliceStorageMut<'a, N, R, C, <S as Storage<N, RStor, CStor>>::RStride, <S as Storage<N, RStor, CStor>>::CStride> where
    S: StorageMut<N, RStor, CStor>,
    RStor: Dim,
    CStor: Dim
[src]

Create a new matrix slice without bound checking.

pub unsafe fn new_with_strides_unchecked<S, RStor, CStor, RStride, CStride>(
    storage: &'a mut S,
    start: (usize, usize),
    shape: (R, C),
    strides: (RStride, CStride)
) -> SliceStorageMut<'a, N, R, C, RStride, CStride> where
    S: StorageMut<N, RStor, CStor>,
    RStride: Dim,
    CStride: Dim,
    RStor: Dim,
    CStor: Dim
[src]

Create a new matrix slice without bound checking.

Trait Implementations

impl<'a, N, R, C, RStride, CStride> Debug for SliceStorageMut<'a, N, R, C, RStride, CStride> where
    C: Debug + Dim,
    N: Debug + Scalar,
    R: Debug + Dim,
    RStride: Debug + Dim,
    CStride: Debug + Dim
[src]

impl<'a, N, R, C, RStride, CStride> Storage<N, R, C> for SliceStorageMut<'a, N, R, C, RStride, CStride> where
    C: Dim,
    N: Scalar,
    R: Dim,
    RStride: Dim,
    CStride: Dim
[src]

type RStride = RStride

The static stride of this storage’s rows.

type CStride = CStride

The static stride of this storage’s columns.

impl<'a, N, R, C, RStride, CStride> StorageMut<N, R, C> for SliceStorageMut<'a, N, R, C, RStride, CStride> where
    C: Dim,
    N: Scalar,
    R: Dim,
    RStride: Dim,
    CStride: Dim
[src]

impl<'a, N, R, C> ContiguousStorage<N, R, C> for SliceStorageMut<'a, N, R, C, U1, R> where
    C: Dim + IsNotStaticOne,
    N: Scalar,
    R: DimName
[src]

impl<'a, N, R, CStride> ContiguousStorage<N, R, U1> for SliceStorageMut<'a, N, R, U1, U1, CStride> where
    N: Scalar,
    R: Dim,
    CStride: Dim
[src]

impl<'a, N, R, C> ContiguousStorageMut<N, R, C> for SliceStorageMut<'a, N, R, C, U1, R> where
    C: Dim + IsNotStaticOne,
    N: Scalar,
    R: DimName
[src]

impl<'a, N, R, CStride> ContiguousStorageMut<N, R, U1> for SliceStorageMut<'a, N, R, U1, U1, CStride> where
    N: Scalar,
    R: Dim,
    CStride: Dim
[src]

impl<'a, N, R, C, RStride, CStride> Send for SliceStorageMut<'a, N, R, C, RStride, CStride> where
    C: Dim,
    N: Scalar + Send,
    R: Dim,
    RStride: Dim,
    CStride: Dim
[src]

impl<'a, N, R, C, RStride, CStride> Sync for SliceStorageMut<'a, N, R, C, RStride, CStride> where
    C: Dim,
    N: Scalar + Sync,
    R: Dim,
    RStride: Dim,
    CStride: Dim
[src]

Auto Trait Implementations

impl<'a, N, R, C, RStride, CStride> RefUnwindSafe for SliceStorageMut<'a, N, R, C, RStride, CStride> where
    C: RefUnwindSafe,
    CStride: RefUnwindSafe,
    N: RefUnwindSafe,
    R: RefUnwindSafe,
    RStride: RefUnwindSafe

impl<'a, N, R, C, RStride, CStride> Unpin for SliceStorageMut<'a, N, R, C, RStride, CStride> where
    C: Unpin,
    CStride: Unpin,
    R: Unpin,
    RStride: Unpin

impl<'a, N, R, C, RStride, CStride> !UnwindSafe for SliceStorageMut<'a, N, R, C, RStride, CStride>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]