Struct heron::rapier_plugin::rapier::parry::na::base::SliceStorageMut [−][src]
pub struct SliceStorageMut<'a, T, R, C, RStride, CStride> where
C: Dim,
T: 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, T, R, C, RStride, CStride> SliceStorageMut<'a, T, R, C, RStride, CStride> where
C: Dim,
T: Scalar,
R: Dim,
RStride: Dim,
CStride: Dim,
[src]
C: Dim,
T: Scalar,
R: Dim,
RStride: Dim,
CStride: Dim,
pub unsafe fn from_raw_parts(
ptr: *mut T,
shape: (R, C),
strides: (RStride, CStride)
) -> SliceStorageMut<'a, T, R, C, RStride, CStride> where
RStride: Dim,
CStride: Dim,
[src]
ptr: *mut T,
shape: (R, C),
strides: (RStride, CStride)
) -> SliceStorageMut<'a, T, R, C, RStride, CStride> where
RStride: Dim,
CStride: Dim,
Create a new matrix slice without bound checking and from a raw pointer.
impl<'a, T, R, C> SliceStorageMut<'a, T, R, C, Dynamic, Dynamic> where
C: Dim,
T: Scalar,
R: Dim,
[src]
C: Dim,
T: Scalar,
R: Dim,
pub unsafe fn new_unchecked<RStor, CStor, S>(
storage: &'a mut S,
start: (usize, usize),
shape: (R, C)
) -> SliceStorageMut<'a, T, R, C, <S as Storage<T, RStor, CStor>>::RStride, <S as Storage<T, RStor, CStor>>::CStride> where
S: StorageMut<T, RStor, CStor>,
RStor: Dim,
CStor: Dim,
[src]
storage: &'a mut S,
start: (usize, usize),
shape: (R, C)
) -> SliceStorageMut<'a, T, R, C, <S as Storage<T, RStor, CStor>>::RStride, <S as Storage<T, RStor, CStor>>::CStride> where
S: StorageMut<T, RStor, CStor>,
RStor: Dim,
CStor: Dim,
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, T, R, C, RStride, CStride> where
S: StorageMut<T, RStor, CStor>,
RStride: Dim,
CStride: Dim,
RStor: Dim,
CStor: Dim,
[src]
storage: &'a mut S,
start: (usize, usize),
shape: (R, C),
strides: (RStride, CStride)
) -> SliceStorageMut<'a, T, R, C, RStride, CStride> where
S: StorageMut<T, RStor, CStor>,
RStride: Dim,
CStride: Dim,
RStor: Dim,
CStor: Dim,
Create a new matrix slice without bound checking.
Trait Implementations
impl<'a, T, R, C> ContiguousStorage<T, R, C> for SliceStorageMut<'a, T, R, C, Const<1_usize>, R> where
C: Dim + IsNotStaticOne,
T: Scalar,
R: DimName,
[src]
C: Dim + IsNotStaticOne,
T: Scalar,
R: DimName,
impl<'a, T, R, CStride> ContiguousStorage<T, R, Const<1_usize>> for SliceStorageMut<'a, T, R, Const<1_usize>, Const<1_usize>, CStride> where
T: Scalar,
R: Dim,
CStride: Dim,
[src]
T: Scalar,
R: Dim,
CStride: Dim,
impl<'a, T, R, C> ContiguousStorageMut<T, R, C> for SliceStorageMut<'a, T, R, C, Const<1_usize>, R> where
C: Dim + IsNotStaticOne,
T: Scalar,
R: DimName,
[src]
C: Dim + IsNotStaticOne,
T: Scalar,
R: DimName,
impl<'a, T, R, CStride> ContiguousStorageMut<T, R, Const<1_usize>> for SliceStorageMut<'a, T, R, Const<1_usize>, Const<1_usize>, CStride> where
T: Scalar,
R: Dim,
CStride: Dim,
[src]
T: Scalar,
R: Dim,
CStride: Dim,
impl<'a, T, R, C, RStride, CStride> Debug for SliceStorageMut<'a, T, R, C, RStride, CStride> where
C: Debug + Dim,
T: Debug + Scalar,
R: Debug + Dim,
RStride: Debug + Dim,
CStride: Debug + Dim,
[src]
C: Debug + Dim,
T: Debug + Scalar,
R: Debug + Dim,
RStride: Debug + Dim,
CStride: Debug + Dim,
impl<'a, T, R, C, RStride, CStride> Send for SliceStorageMut<'a, T, R, C, RStride, CStride> where
C: Dim,
T: Scalar + Send,
R: Dim,
RStride: Dim,
CStride: Dim,
[src]
C: Dim,
T: Scalar + Send,
R: Dim,
RStride: Dim,
CStride: Dim,
impl<'a, T, R, C, RStride, CStride> Storage<T, R, C> for SliceStorageMut<'a, T, R, C, RStride, CStride> where
C: Dim,
T: Scalar,
R: Dim,
RStride: Dim,
CStride: Dim,
[src]
C: Dim,
T: Scalar,
R: Dim,
RStride: Dim,
CStride: Dim,
type RStride = RStride
The static stride of this storage’s rows.
type CStride = CStride
The static stride of this storage’s columns.
pub fn ptr(&self) -> *const T
[src]
pub fn shape(&self) -> (R, C)
[src]
pub fn strides(
&self
) -> (<SliceStorageMut<'a, T, R, C, RStride, CStride> as Storage<T, R, C>>::RStride, <SliceStorageMut<'a, T, R, C, RStride, CStride> as Storage<T, R, C>>::CStride)
[src]
&self
) -> (<SliceStorageMut<'a, T, R, C, RStride, CStride> as Storage<T, R, C>>::RStride, <SliceStorageMut<'a, T, R, C, RStride, CStride> as Storage<T, R, C>>::CStride)
pub fn is_contiguous(&self) -> bool
[src]
pub fn into_owned(self) -> <DefaultAllocator as Allocator<T, R, C>>::Buffer where
DefaultAllocator: Allocator<T, R, C>,
[src]
DefaultAllocator: Allocator<T, R, C>,
pub fn clone_owned(&self) -> <DefaultAllocator as Allocator<T, R, C>>::Buffer where
DefaultAllocator: Allocator<T, R, C>,
[src]
DefaultAllocator: Allocator<T, R, C>,
pub fn as_slice(&self) -> &[T]
[src]
pub fn linear_index(&self, irow: usize, icol: usize) -> usize
[src]
pub unsafe fn get_address_unchecked_linear(&self, i: usize) -> *const T
[src]
pub unsafe fn get_address_unchecked(&self, irow: usize, icol: usize) -> *const T
[src]
pub unsafe fn get_unchecked_linear(&self, i: usize) -> &T
[src]
pub unsafe fn get_unchecked(&self, irow: usize, icol: usize) -> &T
[src]
impl<'a, T, R, C, RStride, CStride> StorageMut<T, R, C> for SliceStorageMut<'a, T, R, C, RStride, CStride> where
C: Dim,
T: Scalar,
R: Dim,
RStride: Dim,
CStride: Dim,
[src]
C: Dim,
T: Scalar,
R: Dim,
RStride: Dim,
CStride: Dim,
pub fn ptr_mut(&mut self) -> *mut T
[src]
pub fn as_mut_slice(&mut self) -> &mut [T]
[src]
pub unsafe fn get_address_unchecked_linear_mut(&mut self, i: usize) -> *mut T
[src]
pub unsafe fn get_address_unchecked_mut(
&mut self,
irow: usize,
icol: usize
) -> *mut T
[src]
&mut self,
irow: usize,
icol: usize
) -> *mut T
pub unsafe fn get_unchecked_linear_mut(&mut self, i: usize) -> &mut T
[src]
pub unsafe fn get_unchecked_mut(&mut self, irow: usize, icol: usize) -> &mut T
[src]
pub unsafe fn swap_unchecked_linear(&mut self, i1: usize, i2: usize)
[src]
pub 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)
)
impl<'a, T, R, C, RStride, CStride> Sync for SliceStorageMut<'a, T, R, C, RStride, CStride> where
C: Dim,
T: Scalar + Sync,
R: Dim,
RStride: Dim,
CStride: Dim,
[src]
C: Dim,
T: Scalar + Sync,
R: Dim,
RStride: Dim,
CStride: Dim,
Auto Trait Implementations
impl<'a, T, R, C, RStride, CStride> RefUnwindSafe for SliceStorageMut<'a, T, R, C, RStride, CStride> where
C: RefUnwindSafe,
CStride: RefUnwindSafe,
R: RefUnwindSafe,
RStride: RefUnwindSafe,
T: RefUnwindSafe,
C: RefUnwindSafe,
CStride: RefUnwindSafe,
R: RefUnwindSafe,
RStride: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, R, C, RStride, CStride> Unpin for SliceStorageMut<'a, T, R, C, RStride, CStride> where
C: Unpin,
CStride: Unpin,
R: Unpin,
RStride: Unpin,
C: Unpin,
CStride: Unpin,
R: Unpin,
RStride: Unpin,
impl<'a, T, R, C, RStride, CStride> !UnwindSafe for SliceStorageMut<'a, T, R, C, RStride, CStride>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> Downcast<T> for T
impl<T> DowncastSync for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Upcast<T> for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,