[−][src]Struct na::base::SliceStorageMut
A mutable matrix data storage for mutable matrix slice. Only contains an internal mutable reference to another matrix data storage.
Methods
impl<'a, N, R, C, RStride, CStride> SliceStorageMut<'a, N, R, C, RStride, CStride> where
C: Dim,
CStride: Dim,
N: Scalar,
R: Dim,
RStride: Dim,
[src]
C: Dim,
CStride: Dim,
N: Scalar,
R: Dim,
RStride: Dim,
pub unsafe fn from_raw_parts(
ptr: *mut N,
shape: (R, C),
strides: (RStride, CStride)
) -> SliceStorageMut<'a, N, R, C, RStride, CStride> where
CStride: Dim,
RStride: Dim,
[src]
ptr: *mut N,
shape: (R, C),
strides: (RStride, CStride)
) -> SliceStorageMut<'a, N, R, C, RStride, CStride> where
CStride: Dim,
RStride: Dim,
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]
C: Dim,
N: Scalar,
R: Dim,
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
CStor: Dim,
RStor: Dim,
S: StorageMut<N, RStor, CStor>,
[src]
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
CStor: Dim,
RStor: Dim,
S: StorageMut<N, RStor, CStor>,
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
CStor: Dim,
CStride: Dim,
RStor: Dim,
RStride: Dim,
S: StorageMut<N, RStor, CStor>,
[src]
storage: &'a mut S,
start: (usize, usize),
shape: (R, C),
strides: (RStride, CStride)
) -> SliceStorageMut<'a, N, R, C, RStride, CStride> where
CStor: Dim,
CStride: Dim,
RStor: Dim,
RStride: Dim,
S: StorageMut<N, RStor, CStor>,
Create a new matrix slice without bound checking.
Trait Implementations
impl<'a, N, R, CStride> ContiguousStorage<N, R, U1> for SliceStorageMut<'a, N, R, U1, U1, CStride> where
CStride: Dim,
N: Scalar,
R: Dim,
[src]
CStride: Dim,
N: Scalar,
R: Dim,
impl<'a, N, R, C> ContiguousStorage<N, R, C> for SliceStorageMut<'a, N, R, C, U1, R> where
C: IsNotStaticOne + Dim,
N: Scalar,
R: DimName,
[src]
C: IsNotStaticOne + Dim,
N: Scalar,
R: DimName,
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]
C: Dim,
CStride: Dim,
N: Scalar,
R: Dim,
RStride: Dim,
fn ptr_mut(&mut self) -> *mut N
[src]
fn as_mut_slice(&mut self) -> &mut [N]
[src]
unsafe fn get_address_unchecked_linear_mut(&mut self, i: usize) -> *mut N
[src]
Gets the mutable address of the i-th matrix component without performing bound-checking.
unsafe fn get_address_unchecked_mut(
&mut self,
irow: usize,
icol: usize
) -> *mut N
[src]
&mut self,
irow: usize,
icol: usize
) -> *mut N
Gets the mutable address of the i-th matrix component without performing bound-checking.
unsafe fn get_unchecked_linear_mut(&mut self, i: usize) -> &mut N
[src]
Retrieves a mutable reference to the i-th element without bound-checking.
unsafe fn get_unchecked_mut(&mut self, irow: usize, icol: usize) -> &mut N
[src]
Retrieves a mutable reference to the element at (irow, icol)
without bound-checking.
unsafe fn swap_unchecked_linear(&mut self, i1: usize, i2: usize)
[src]
Swaps two elements using their linear index without bound-checking.
unsafe fn swap_unchecked(
&mut self,
row_col1: (usize, usize),
row_col2: (usize, usize)
)
[src]
&mut self,
row_col1: (usize, usize),
row_col2: (usize, usize)
)
Swaps two elements without bound-checking.
impl<'a, N, R, C, RStride, CStride> Send for SliceStorageMut<'a, N, R, C, RStride, CStride> where
C: Dim,
CStride: Dim,
N: Scalar + Send,
R: Dim,
RStride: Dim,
[src]
C: Dim,
CStride: Dim,
N: Scalar + Send,
R: Dim,
RStride: Dim,
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]
C: Dim,
CStride: Dim,
N: Scalar,
R: Dim,
RStride: Dim,
type RStride = RStride
The static stride of this storage's rows.
type CStride = CStride
The static stride of this storage's columns.
fn ptr(&self) -> *const N
[src]
fn shape(&self) -> (R, C)
[src]
fn strides(
&self
) -> (<SliceStorageMut<'a, N, R, C, RStride, CStride> as Storage<N, R, C>>::RStride, <SliceStorageMut<'a, N, R, C, RStride, CStride> as Storage<N, R, C>>::CStride)
[src]
&self
) -> (<SliceStorageMut<'a, N, R, C, RStride, CStride> as Storage<N, R, C>>::RStride, <SliceStorageMut<'a, N, R, C, RStride, CStride> as Storage<N, R, C>>::CStride)
fn is_contiguous(&self) -> bool
[src]
fn into_owned(self) -> <DefaultAllocator as Allocator<N, R, C>>::Buffer where
DefaultAllocator: Allocator<N, R, C>,
[src]
DefaultAllocator: Allocator<N, R, C>,
fn clone_owned(&self) -> <DefaultAllocator as Allocator<N, R, C>>::Buffer where
DefaultAllocator: Allocator<N, R, C>,
[src]
DefaultAllocator: Allocator<N, R, C>,
fn as_slice(&self) -> &[N]
[src]
fn linear_index(&self, irow: usize, icol: usize) -> usize
[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
unsafe fn get_address_unchecked_linear(&self, i: usize) -> *const N
[src]
Gets the address of the i-th matrix component without performing bound-checking.
unsafe fn get_address_unchecked(&self, irow: usize, icol: usize) -> *const N
[src]
Gets the address of the i-th matrix component without performing bound-checking.
unsafe fn get_unchecked_linear(&self, i: usize) -> &N
[src]
Retrieves a reference to the i-th element without bound-checking.
unsafe fn get_unchecked(&self, irow: usize, icol: usize) -> &N
[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]
C: Dim + Debug,
CStride: Dim + Debug,
N: Scalar + Debug,
R: Dim + Debug,
RStride: Dim + Debug,
impl<'a, N, R, C, RStride, CStride> Sync for SliceStorageMut<'a, N, R, C, RStride, CStride> where
C: Dim,
CStride: Dim,
N: Scalar + Sync,
R: Dim,
RStride: Dim,
[src]
C: Dim,
CStride: Dim,
N: Scalar + Sync,
R: Dim,
RStride: Dim,
impl<'a, N, R, C> ContiguousStorageMut<N, R, C> for SliceStorageMut<'a, N, R, C, U1, R> where
C: IsNotStaticOne + Dim,
N: Scalar,
R: DimName,
[src]
C: IsNotStaticOne + Dim,
N: Scalar,
R: DimName,
impl<'a, N, R, CStride> ContiguousStorageMut<N, R, U1> for SliceStorageMut<'a, N, R, U1, U1, CStride> where
CStride: Dim,
N: Scalar,
R: Dim,
[src]
CStride: Dim,
N: Scalar,
R: Dim,
Blanket Implementations
impl<V> IntoVec<V> for V
[src]
impl<V> IntoPnt<V> for V
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,