[−][src]Struct rin::math::core::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]
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,
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]
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,
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]
impl<'a, N, R, C> SliceStorageMut<'a, N, R, C, Dynamic, Dynamic> where
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]
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>,
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]
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>,
Create a new matrix slice without bound checking.
Trait Implementations
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]
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,
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]
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,
fn ptr_mut(&mut self) -> *mut N
[src]
fn ptr_mut(&mut self) -> *mut N
fn as_mut_slice(&mut self) -> &mut [N]
[src]
fn as_mut_slice(&mut self) -> &mut [N]
unsafe fn get_address_unchecked_linear_mut(&mut self, i: usize) -> *mut N
[src]
unsafe fn get_address_unchecked_linear_mut(&mut self, i: usize) -> *mut N
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]
unsafe fn get_address_unchecked_mut(
&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]
unsafe fn get_unchecked_linear_mut(&mut self, i: usize) -> &mut N
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]
unsafe fn get_unchecked_mut(&mut self, irow: usize, icol: usize) -> &mut N
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]
unsafe fn swap_unchecked_linear(&mut self, i1: usize, i2: usize)
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]
unsafe fn swap_unchecked(
&mut self,
row_col1: (usize, usize),
row_col2: (usize, usize)
)
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]
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,
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 ptr(&self) -> *const N
fn shape(&self) -> (R, C)
[src]
fn shape(&self) -> (R, C)
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]
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)
fn is_contiguous(&self) -> bool
[src]
fn is_contiguous(&self) -> bool
fn into_owned(self) -> <DefaultAllocator as Allocator<N, R, C>>::Buffer where
DefaultAllocator: Allocator<N, R, C>,
[src]
fn into_owned(self) -> <DefaultAllocator as Allocator<N, R, C>>::Buffer where
DefaultAllocator: Allocator<N, R, C>,
fn clone_owned(&self) -> <DefaultAllocator as Allocator<N, R, C>>::Buffer where
DefaultAllocator: Allocator<N, R, C>,
[src]
fn clone_owned(&self) -> <DefaultAllocator as Allocator<N, R, C>>::Buffer where
DefaultAllocator: Allocator<N, R, C>,
fn as_slice(&self) -> &[N]
[src]
fn as_slice(&self) -> &[N]
fn linear_index(&self, irow: usize, icol: usize) -> usize
[src]
fn linear_index(&self, irow: usize, icol: usize) -> usize
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]
unsafe fn get_address_unchecked_linear(&self, i: usize) -> *const N
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]
unsafe fn get_address_unchecked(&self, irow: usize, icol: usize) -> *const N
Gets the address of the i-th matrix component without performing bound-checking.
unsafe fn get_unchecked_linear(&self, i: usize) -> &N
[src]
unsafe fn get_unchecked_linear(&self, i: usize) -> &N
Retrieves a reference to the i-th element without bound-checking.
unsafe fn get_unchecked(&self, irow: usize, icol: usize) -> &N
[src]
unsafe fn get_unchecked(&self, irow: usize, icol: usize) -> &N
Retrieves a reference to the i-th element without bound-checking.
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]
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,
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]
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,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: Any,
[src]
impl<T> Any for T where
T: Any,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> SetParameter for T
[src]
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<V> IntoVec for V
[src]
impl<V> IntoVec for V
impl<V> IntoPnt for V
[src]
impl<V> IntoPnt for V
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
[src]
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
[src]
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
[src]
fn from_subset(element: &SS) -> SP
impl<T> Same for T
[src]
impl<T> Same for T
type Output = T
Should always be Self