pub type OwnedUninit<T, R, C = Const<1>> = <DefaultAllocator as Allocator<T, R, C>>::BufferUninit;
Expand description

The owned data storage that can be allocated from S.

Trait Implementations§

source§

impl<T, const R: usize, const C: usize> Allocator<T, Const<R>, Const<C>> for DefaultAllocatorwhere T: Scalar,

§

type Buffer = ArrayStorage<T, R, C>

The type of buffer this allocator can instanciate.
§

type BufferUninit = ArrayStorage<MaybeUninit<T>, R, C>

The type of buffer with uninitialized components this allocator can instanciate.
source§

fn allocate_uninit( _: Const<R>, _: Const<C> ) -> ArrayStorage<MaybeUninit<T>, R, C>

Allocates a buffer with the given number of rows and columns without initializing its content.
source§

unsafe fn assume_init( uninit: ArrayStorage<MaybeUninit<T>, R, C> ) -> ArrayStorage<T, R, C>

Assumes a data buffer to be initialized. Read more
source§

fn allocate_from_iterator<I>( nrows: Const<R>, ncols: Const<C>, iter: I ) -> <DefaultAllocator as Allocator<T, Const<R>, Const<C>>>::Bufferwhere I: IntoIterator<Item = T>,

Allocates a buffer initialized with the content of the given iterator.
source§

impl<T, C> Allocator<T, Dynamic, C> for DefaultAllocatorwhere T: Scalar, C: Dim,

§

type Buffer = VecStorage<T, Dynamic, C>

The type of buffer this allocator can instanciate.
§

type BufferUninit = VecStorage<MaybeUninit<T>, Dynamic, C>

The type of buffer with uninitialized components this allocator can instanciate.
source§

fn allocate_uninit( nrows: Dynamic, ncols: C ) -> VecStorage<MaybeUninit<T>, Dynamic, C>

Allocates a buffer with the given number of rows and columns without initializing its content.
source§

unsafe fn assume_init( uninit: VecStorage<MaybeUninit<T>, Dynamic, C> ) -> VecStorage<T, Dynamic, C>

Assumes a data buffer to be initialized. Read more
source§

fn allocate_from_iterator<I>( nrows: Dynamic, ncols: C, iter: I ) -> <DefaultAllocator as Allocator<T, Dynamic, C>>::Bufferwhere I: IntoIterator<Item = T>,

Allocates a buffer initialized with the content of the given iterator.
source§

impl<T, R> Allocator<T, R, Dynamic> for DefaultAllocatorwhere T: Scalar, R: DimName,

§

type Buffer = VecStorage<T, R, Dynamic>

The type of buffer this allocator can instanciate.
§

type BufferUninit = VecStorage<MaybeUninit<T>, R, Dynamic>

The type of buffer with uninitialized components this allocator can instanciate.
source§

fn allocate_uninit( nrows: R, ncols: Dynamic ) -> VecStorage<MaybeUninit<T>, R, Dynamic>

Allocates a buffer with the given number of rows and columns without initializing its content.
source§

unsafe fn assume_init( uninit: VecStorage<MaybeUninit<T>, R, Dynamic> ) -> VecStorage<T, R, Dynamic>

Assumes a data buffer to be initialized. Read more
source§

fn allocate_from_iterator<I>( nrows: R, ncols: Dynamic, iter: I ) -> <DefaultAllocator as Allocator<T, R, Dynamic>>::Bufferwhere I: IntoIterator<Item = T>,

Allocates a buffer initialized with the content of the given iterator.
source§

impl Clone for DefaultAllocator

source§

fn clone(&self) -> DefaultAllocator

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DefaultAllocator

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T, CTo, const RFROM: usize, const CFROM: usize> Reallocator<T, Const<RFROM>, Const<CFROM>, Dynamic, CTo> for DefaultAllocatorwhere T: Scalar, CTo: Dim,

source§

unsafe fn reallocate_copy( rto: Dynamic, cto: CTo, buf: ArrayStorage<T, RFROM, CFROM> ) -> VecStorage<MaybeUninit<T>, Dynamic, CTo>

Reallocates a buffer of shape (RTo, CTo), possibly reusing a previously allocated buffer buf. Data stored by buf are linearly copied to the output: Read more
source§

impl<T, RTo, const RFROM: usize, const CFROM: usize> Reallocator<T, Const<RFROM>, Const<CFROM>, RTo, Dynamic> for DefaultAllocatorwhere T: Scalar, RTo: DimName,

source§

unsafe fn reallocate_copy( rto: RTo, cto: Dynamic, buf: ArrayStorage<T, RFROM, CFROM> ) -> VecStorage<MaybeUninit<T>, RTo, Dynamic>

Reallocates a buffer of shape (RTo, CTo), possibly reusing a previously allocated buffer buf. Data stored by buf are linearly copied to the output: Read more
source§

impl<T, CFrom, CTo> Reallocator<T, Dynamic, CFrom, Dynamic, CTo> for DefaultAllocatorwhere T: Scalar, CFrom: Dim, CTo: Dim,

source§

unsafe fn reallocate_copy( rto: Dynamic, cto: CTo, buf: VecStorage<T, Dynamic, CFrom> ) -> VecStorage<MaybeUninit<T>, Dynamic, CTo>

Reallocates a buffer of shape (RTo, CTo), possibly reusing a previously allocated buffer buf. Data stored by buf are linearly copied to the output: Read more
source§

impl<T, CFrom, RTo> Reallocator<T, Dynamic, CFrom, RTo, Dynamic> for DefaultAllocatorwhere T: Scalar, CFrom: Dim, RTo: DimName,

source§

unsafe fn reallocate_copy( rto: RTo, cto: Dynamic, buf: VecStorage<T, Dynamic, CFrom> ) -> VecStorage<MaybeUninit<T>, RTo, Dynamic>

Reallocates a buffer of shape (RTo, CTo), possibly reusing a previously allocated buffer buf. Data stored by buf are linearly copied to the output: Read more
source§

impl<T, RFrom, CFrom, const RTO: usize, const CTO: usize> Reallocator<T, RFrom, CFrom, Const<RTO>, Const<CTO>> for DefaultAllocatorwhere T: Scalar, RFrom: Dim, CFrom: Dim, DefaultAllocator: Allocator<T, RFrom, CFrom>,

source§

unsafe fn reallocate_copy( rto: Const<RTO>, cto: Const<CTO>, buf: <DefaultAllocator as Allocator<T, RFrom, CFrom>>::Buffer ) -> ArrayStorage<MaybeUninit<T>, RTO, CTO>

Reallocates a buffer of shape (RTo, CTo), possibly reusing a previously allocated buffer buf. Data stored by buf are linearly copied to the output: Read more
source§

impl<T, RFrom, CTo> Reallocator<T, RFrom, Dynamic, Dynamic, CTo> for DefaultAllocatorwhere T: Scalar, RFrom: DimName, CTo: Dim,

source§

unsafe fn reallocate_copy( rto: Dynamic, cto: CTo, buf: VecStorage<T, RFrom, Dynamic> ) -> VecStorage<MaybeUninit<T>, Dynamic, CTo>

Reallocates a buffer of shape (RTo, CTo), possibly reusing a previously allocated buffer buf. Data stored by buf are linearly copied to the output: Read more
source§

impl<T, RFrom, RTo> Reallocator<T, RFrom, Dynamic, RTo, Dynamic> for DefaultAllocatorwhere T: Scalar, RFrom: DimName, RTo: DimName,

source§

unsafe fn reallocate_copy( rto: RTo, cto: Dynamic, buf: VecStorage<T, RFrom, Dynamic> ) -> VecStorage<MaybeUninit<T>, RTo, Dynamic>

Reallocates a buffer of shape (RTo, CTo), possibly reusing a previously allocated buffer buf. Data stored by buf are linearly copied to the output: Read more
source§

impl Copy for DefaultAllocator

source§

impl<T, R1, R2, C1, C2> SameShapeAllocator<T, R1, C1, R2, C2> for DefaultAllocatorwhere R1: Dim, R2: Dim, C1: Dim, C2: Dim, DefaultAllocator: Allocator<T, R1, C1> + Allocator<T, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, <ShapeConstraint as SameNumberOfColumns<C1, C2>>::Representative>, ShapeConstraint: SameNumberOfRows<R1, R2> + SameNumberOfColumns<C1, C2>,

source§

impl<T, R1, R2> SameShapeVectorAllocator<T, R1, R2> for DefaultAllocatorwhere R1: Dim, R2: Dim, DefaultAllocator: Allocator<T, R1, Const<1>> + Allocator<T, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, Const<1>>, ShapeConstraint: SameNumberOfRows<R1, R2>,