[−][src]Struct rin::math::core::SliceStorage
A matrix data storage for a matrix slice. Only contains an internal reference to another matrix data storage.
Methods
impl<'a, N, R, C, RStride, CStride> SliceStorage<'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> SliceStorage<'a, N, R, C, RStride, CStride> where
C: Dim,
CStride: Dim,
N: Scalar,
R: Dim,
RStride: Dim,
pub unsafe fn from_raw_parts(
ptr: *const N,
shape: (R, C),
strides: (RStride, CStride)
) -> SliceStorage<'a, N, R, C, RStride, CStride> where
CStride: Dim,
RStride: Dim,
[src]
pub unsafe fn from_raw_parts(
ptr: *const N,
shape: (R, C),
strides: (RStride, CStride)
) -> SliceStorage<'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> SliceStorage<'a, N, R, C, Dynamic, Dynamic> where
C: Dim,
N: Scalar,
R: Dim,
[src]
impl<'a, N, R, C> SliceStorage<'a, N, R, C, Dynamic, Dynamic> where
C: Dim,
N: Scalar,
R: Dim,
pub unsafe fn new_unchecked<RStor, CStor, S>(
storage: &'a S,
start: (usize, usize),
shape: (R, C)
) -> SliceStorage<'a, N, R, C, <S as Storage<N, RStor, CStor>>::RStride, <S as Storage<N, RStor, CStor>>::CStride> where
CStor: Dim,
RStor: Dim,
S: Storage<N, RStor, CStor>,
[src]
pub unsafe fn new_unchecked<RStor, CStor, S>(
storage: &'a S,
start: (usize, usize),
shape: (R, C)
) -> SliceStorage<'a, N, R, C, <S as Storage<N, RStor, CStor>>::RStride, <S as Storage<N, RStor, CStor>>::CStride> where
CStor: Dim,
RStor: Dim,
S: Storage<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 S,
start: (usize, usize),
shape: (R, C),
strides: (RStride, CStride)
) -> SliceStorage<'a, N, R, C, RStride, CStride> where
CStor: Dim,
CStride: Dim,
RStor: Dim,
RStride: Dim,
S: Storage<N, RStor, CStor>,
[src]
pub unsafe fn new_with_strides_unchecked<S, RStor, CStor, RStride, CStride>(
storage: &'a S,
start: (usize, usize),
shape: (R, C),
strides: (RStride, CStride)
) -> SliceStorage<'a, N, R, C, RStride, CStride> where
CStor: Dim,
CStride: Dim,
RStor: Dim,
RStride: Dim,
S: Storage<N, RStor, CStor>,
Create a new matrix slice without bound checking.
Trait Implementations
impl<'a, N, R, C, RStride, CStride> Send for SliceStorage<'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 SliceStorage<'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> Storage<N, R, C> for SliceStorage<'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 SliceStorage<'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
) -> (<SliceStorage<'a, N, R, C, RStride, CStride> as Storage<N, R, C>>::RStride, <SliceStorage<'a, N, R, C, RStride, CStride> as Storage<N, R, C>>::CStride)
[src]
fn strides(
&self
) -> (<SliceStorage<'a, N, R, C, RStride, CStride> as Storage<N, R, C>>::RStride, <SliceStorage<'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> Copy for SliceStorage<'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> Copy for SliceStorage<'a, N, R, C, RStride, CStride> where
C: Dim,
CStride: Dim,
N: Scalar,
R: Dim,
RStride: Dim,
impl<'a, N, R, C, RStride, CStride> Sync for SliceStorage<'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 SliceStorage<'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> Clone for SliceStorage<'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> Clone for SliceStorage<'a, N, R, C, RStride, CStride> where
C: Dim,
CStride: Dim,
N: Scalar,
R: Dim,
RStride: Dim,
fn clone(&self) -> SliceStorage<'a, N, R, C, RStride, CStride>
[src]
fn clone(&self) -> SliceStorage<'a, N, R, C, RStride, CStride>
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'a, N, R, C, RStride, CStride> Debug for SliceStorage<'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 SliceStorage<'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> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
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