Trait na::Storage

source ·
pub unsafe trait Storage<T, R, C = Const<1>>: RawStorage<T, R, C>where
    R: Dim,
    C: Dim,{
    // Required methods
    fn into_owned(self) -> <DefaultAllocator as Allocator<T, R, C>>::Buffer
       where DefaultAllocator: Allocator<T, R, C>;
    fn clone_owned(&self) -> <DefaultAllocator as Allocator<T, R, C>>::Buffer
       where DefaultAllocator: Allocator<T, R, C>;
}
Expand description

Trait shared by all matrix data storage that don’t contain any uninitialized elements.

Required Methods§

source

fn into_owned(self) -> <DefaultAllocator as Allocator<T, R, C>>::Bufferwhere DefaultAllocator: Allocator<T, R, C>,

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

source

fn clone_owned(&self) -> <DefaultAllocator as Allocator<T, R, C>>::Bufferwhere DefaultAllocator: Allocator<T, R, C>,

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

Implementors§

source§

impl<'a, T, R, C, RStride, CStride> Storage<T, R, C> for ViewStorage<'a, T, R, C, RStride, CStride>where T: Scalar, R: Dim, C: Dim, RStride: Dim, CStride: Dim,

source§

impl<'a, T, R, C, RStride, CStride> Storage<T, R, C> for ViewStorageMut<'a, T, R, C, RStride, CStride>where T: Scalar, R: Dim, C: Dim, RStride: Dim, CStride: Dim,

source§

impl<T, C> Storage<T, Dyn, C> for VecStorage<T, Dyn, C>where T: Scalar, C: Dim, DefaultAllocator: Allocator<T, Dyn, C, Buffer = VecStorage<T, Dyn, C>>,

source§

impl<T, R> Storage<T, R, Dyn> for VecStorage<T, R, Dyn>where T: Scalar, R: DimName, DefaultAllocator: Allocator<T, R, Dyn, Buffer = VecStorage<T, R, Dyn>>,

source§

impl<T, const R: usize, const C: usize> Storage<T, Const<R>, Const<C>> for ArrayStorage<T, R, C>where T: Scalar, DefaultAllocator: Allocator<T, Const<R>, Const<C>, Buffer = ArrayStorage<T, R, C>>,