Type Alias oxygengine_physics_2d::prelude::nalgebra::OwnedUninit
source · 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,
impl<T, const R: usize, const C: usize> Allocator<T, Const<R>, Const<C>> for DefaultAllocatorwhere T: Scalar,
§type Buffer = ArrayStorage<T, R, C>
type Buffer = ArrayStorage<T, R, C>
The type of buffer this allocator can instanciate.
§type BufferUninit = ArrayStorage<MaybeUninit<T>, R, C>
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>
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>
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>,
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,
impl<T, C> Allocator<T, Dynamic, C> for DefaultAllocatorwhere T: Scalar, C: Dim,
§type Buffer = VecStorage<T, Dynamic, C>
type Buffer = VecStorage<T, Dynamic, C>
The type of buffer this allocator can instanciate.
§type BufferUninit = VecStorage<MaybeUninit<T>, Dynamic, C>
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>
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>
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>,
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,
impl<T, R> Allocator<T, R, Dynamic> for DefaultAllocatorwhere T: Scalar, R: DimName,
§type Buffer = VecStorage<T, R, Dynamic>
type Buffer = VecStorage<T, R, Dynamic>
The type of buffer this allocator can instanciate.
§type BufferUninit = VecStorage<MaybeUninit<T>, R, Dynamic>
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>
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>
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>,
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
impl Clone for DefaultAllocator
source§fn clone(&self) -> DefaultAllocator
fn clone(&self) -> DefaultAllocator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DefaultAllocator
impl Debug for DefaultAllocator
source§impl<T, CTo, const RFROM: usize, const CFROM: usize> Reallocator<T, Const<RFROM>, Const<CFROM>, Dynamic, CTo> for DefaultAllocatorwhere
T: Scalar,
CTo: Dim,
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>
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 moresource§impl<T, RTo, const RFROM: usize, const CFROM: usize> Reallocator<T, Const<RFROM>, Const<CFROM>, RTo, Dynamic> for DefaultAllocatorwhere
T: Scalar,
RTo: DimName,
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>
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 moresource§impl<T, CFrom, CTo> Reallocator<T, Dynamic, CFrom, Dynamic, CTo> for DefaultAllocatorwhere
T: Scalar,
CFrom: Dim,
CTo: Dim,
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>
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 moresource§impl<T, CFrom, RTo> Reallocator<T, Dynamic, CFrom, RTo, Dynamic> for DefaultAllocatorwhere
T: Scalar,
CFrom: Dim,
RTo: DimName,
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>
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 moresource§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>,
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>
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 moresource§impl<T, RFrom, CTo> Reallocator<T, RFrom, Dynamic, Dynamic, CTo> for DefaultAllocatorwhere
T: Scalar,
RFrom: DimName,
CTo: Dim,
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>
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 moresource§impl<T, RFrom, RTo> Reallocator<T, RFrom, Dynamic, RTo, Dynamic> for DefaultAllocatorwhere
T: Scalar,
RFrom: DimName,
RTo: DimName,
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>
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