Struct ggez::graphics::na::SliceStorageMut [] [src]

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

Methods

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

[src]

Create a new matrix slice without bound checking.

[src]

Create a new matrix slice without bound checking.

[src]

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

Trait Implementations

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

[src]

The matrix mutable data pointer.

[src]

Retrieves the mutable data buffer as a contiguous slice. Read more

[src]

Gets the mutable address of the i-th matrix component without performing bound-checking.

[src]

Gets the mutable address of the i-th matrix component without performing bound-checking.

[src]

Retrieves a mutable reference to the i-th element without bound-checking.

[src]

Retrieves a mutable reference to the element at (irow, icol) without bound-checking.

[src]

Swaps two elements using their linear index without bound-checking.

[src]

Swaps two elements without bound-checking.

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

The static stride of this storage's rows.

The static stride of this storage's columns.

[src]

The matrix data pointer.

[src]

The dimension of the matrix at run-time. Arr length of zero indicates the additive identity element of any dimension. Must be equal to Self::dimension() if it is not None. Read more

[src]

The spacing between concecutive row elements and consecutive column elements. Read more

[src]

Indicates whether this data buffer stores its elements contiguously.

[src]

Builds a matrix data storage that does not contain any reference.

[src]

Clones this data storage to one that does not contain any reference.

[src]

Retrieves the data buffer as a contiguous slice. Read more

[src]

Compute the index corresponding to the irow-th row and icol-th column of this matrix. The index must be such that the following holds: Read more

[src]

Gets the address of the i-th matrix component without performing bound-checking.

[src]

Gets the address of the i-th matrix component without performing bound-checking.

[src]

Retrieves a reference to the i-th element without bound-checking.

[src]

Retrieves a reference to the i-th element without bound-checking.

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

[src]

Formats the value using the given formatter.