Struct lnkit::prelude::DefaultAllocator [−][src]
pub struct DefaultAllocator;
An allocator based on GenericArray
and VecStorage
for statically-sized and dynamically-sized
matrices respectively.
Trait Implementations
impl<T, const R: usize, const C: usize> Allocator<T, Const<R>, Const<C>> for DefaultAllocator where
T: Scalar,
[src]
impl<T, const R: usize, const C: usize> Allocator<T, Const<R>, Const<C>> for DefaultAllocator where
T: Scalar,
[src]type Buffer = ArrayStorage<T, R, C>
The type of buffer this allocator can instanciate.
pub unsafe fn allocate_uninitialized(
Const<R>,
Const<C>
) -> MaybeUninit<<DefaultAllocator as Allocator<T, Const<R>, Const<C>>>::Buffer>
[src]
Const<R>,
Const<C>
) -> MaybeUninit<<DefaultAllocator as Allocator<T, Const<R>, Const<C>>>::Buffer>
pub fn allocate_from_iterator<I>(
nrows: Const<R>,
ncols: Const<C>,
iter: I
) -> <DefaultAllocator as Allocator<T, Const<R>, Const<C>>>::Buffer where
I: IntoIterator<Item = T>,
[src]
nrows: Const<R>,
ncols: Const<C>,
iter: I
) -> <DefaultAllocator as Allocator<T, Const<R>, Const<C>>>::Buffer where
I: IntoIterator<Item = T>,
impl<T, C> Allocator<T, Dynamic, C> for DefaultAllocator where
C: Dim,
T: Scalar,
[src]
impl<T, C> Allocator<T, Dynamic, C> for DefaultAllocator where
C: Dim,
T: Scalar,
[src]type Buffer = VecStorage<T, Dynamic, C>
The type of buffer this allocator can instanciate.
pub unsafe fn allocate_uninitialized(
nrows: Dynamic,
ncols: C
) -> MaybeUninit<<DefaultAllocator as Allocator<T, Dynamic, C>>::Buffer>
[src]
nrows: Dynamic,
ncols: C
) -> MaybeUninit<<DefaultAllocator as Allocator<T, Dynamic, C>>::Buffer>
pub fn allocate_from_iterator<I>(
nrows: Dynamic,
ncols: C,
iter: I
) -> <DefaultAllocator as Allocator<T, Dynamic, C>>::Buffer where
I: IntoIterator<Item = T>,
[src]
nrows: Dynamic,
ncols: C,
iter: I
) -> <DefaultAllocator as Allocator<T, Dynamic, C>>::Buffer where
I: IntoIterator<Item = T>,
impl<T, R> Allocator<T, R, Dynamic> for DefaultAllocator where
T: Scalar,
R: DimName,
[src]
impl<T, R> Allocator<T, R, Dynamic> for DefaultAllocator where
T: Scalar,
R: DimName,
[src]type Buffer = VecStorage<T, R, Dynamic>
The type of buffer this allocator can instanciate.
pub unsafe fn allocate_uninitialized(
nrows: R,
ncols: Dynamic
) -> MaybeUninit<<DefaultAllocator as Allocator<T, R, Dynamic>>::Buffer>
[src]
nrows: R,
ncols: Dynamic
) -> MaybeUninit<<DefaultAllocator as Allocator<T, R, Dynamic>>::Buffer>
pub fn allocate_from_iterator<I>(
nrows: R,
ncols: Dynamic,
iter: I
) -> <DefaultAllocator as Allocator<T, R, Dynamic>>::Buffer where
I: IntoIterator<Item = T>,
[src]
nrows: R,
ncols: Dynamic,
iter: I
) -> <DefaultAllocator as Allocator<T, R, Dynamic>>::Buffer where
I: IntoIterator<Item = T>,
impl<T, CTo, const RFROM: usize, const CFROM: usize> Reallocator<T, Const<RFROM>, Const<CFROM>, Dynamic, CTo> for DefaultAllocator where
T: Scalar,
CTo: Dim,
[src]
impl<T, CTo, const RFROM: usize, const CFROM: usize> Reallocator<T, Const<RFROM>, Const<CFROM>, Dynamic, CTo> for DefaultAllocator where
T: Scalar,
CTo: Dim,
[src]pub unsafe fn reallocate_copy(
rto: Dynamic,
cto: CTo,
buf: ArrayStorage<T, RFROM, CFROM>
) -> VecStorage<T, Dynamic, CTo>
[src]
rto: Dynamic,
cto: CTo,
buf: ArrayStorage<T, RFROM, CFROM>
) -> VecStorage<T, Dynamic, CTo>
impl<T, RTo, const RFROM: usize, const CFROM: usize> Reallocator<T, Const<RFROM>, Const<CFROM>, RTo, Dynamic> for DefaultAllocator where
T: Scalar,
RTo: DimName,
[src]
impl<T, RTo, const RFROM: usize, const CFROM: usize> Reallocator<T, Const<RFROM>, Const<CFROM>, RTo, Dynamic> for DefaultAllocator where
T: Scalar,
RTo: DimName,
[src]pub unsafe fn reallocate_copy(
rto: RTo,
cto: Dynamic,
buf: ArrayStorage<T, RFROM, CFROM>
) -> VecStorage<T, RTo, Dynamic>
[src]
rto: RTo,
cto: Dynamic,
buf: ArrayStorage<T, RFROM, CFROM>
) -> VecStorage<T, RTo, Dynamic>
impl<T, CFrom, CTo> Reallocator<T, Dynamic, CFrom, Dynamic, CTo> for DefaultAllocator where
T: Scalar,
CTo: Dim,
CFrom: Dim,
[src]
impl<T, CFrom, CTo> Reallocator<T, Dynamic, CFrom, Dynamic, CTo> for DefaultAllocator where
T: Scalar,
CTo: Dim,
CFrom: Dim,
[src]pub unsafe fn reallocate_copy(
rto: Dynamic,
cto: CTo,
buf: VecStorage<T, Dynamic, CFrom>
) -> VecStorage<T, Dynamic, CTo>
[src]
rto: Dynamic,
cto: CTo,
buf: VecStorage<T, Dynamic, CFrom>
) -> VecStorage<T, Dynamic, CTo>
impl<T, CFrom, RTo> Reallocator<T, Dynamic, CFrom, RTo, Dynamic> for DefaultAllocator where
T: Scalar,
RTo: DimName,
CFrom: Dim,
[src]
impl<T, CFrom, RTo> Reallocator<T, Dynamic, CFrom, RTo, Dynamic> for DefaultAllocator where
T: Scalar,
RTo: DimName,
CFrom: Dim,
[src]pub unsafe fn reallocate_copy(
rto: RTo,
cto: Dynamic,
buf: VecStorage<T, Dynamic, CFrom>
) -> VecStorage<T, RTo, Dynamic>
[src]
rto: RTo,
cto: Dynamic,
buf: VecStorage<T, Dynamic, CFrom>
) -> VecStorage<T, RTo, Dynamic>
impl<T, RFrom, CFrom, const RTO: usize, const CTO: usize> Reallocator<T, RFrom, CFrom, Const<RTO>, Const<CTO>> for DefaultAllocator where
T: Scalar,
RFrom: Dim,
CFrom: Dim,
DefaultAllocator: Allocator<T, RFrom, CFrom>,
[src]
impl<T, RFrom, CFrom, const RTO: usize, const CTO: usize> Reallocator<T, RFrom, CFrom, Const<RTO>, Const<CTO>> for DefaultAllocator where
T: Scalar,
RFrom: Dim,
CFrom: Dim,
DefaultAllocator: Allocator<T, RFrom, CFrom>,
[src]pub unsafe fn reallocate_copy(
rto: Const<RTO>,
cto: Const<CTO>,
buf: <DefaultAllocator as Allocator<T, RFrom, CFrom>>::Buffer
) -> ArrayStorage<T, RTO, CTO>
[src]
rto: Const<RTO>,
cto: Const<CTO>,
buf: <DefaultAllocator as Allocator<T, RFrom, CFrom>>::Buffer
) -> ArrayStorage<T, RTO, CTO>
impl<T, RFrom, CTo> Reallocator<T, RFrom, Dynamic, Dynamic, CTo> for DefaultAllocator where
T: Scalar,
CTo: Dim,
RFrom: DimName,
[src]
impl<T, RFrom, CTo> Reallocator<T, RFrom, Dynamic, Dynamic, CTo> for DefaultAllocator where
T: Scalar,
CTo: Dim,
RFrom: DimName,
[src]pub unsafe fn reallocate_copy(
rto: Dynamic,
cto: CTo,
buf: VecStorage<T, RFrom, Dynamic>
) -> VecStorage<T, Dynamic, CTo>
[src]
rto: Dynamic,
cto: CTo,
buf: VecStorage<T, RFrom, Dynamic>
) -> VecStorage<T, Dynamic, CTo>
impl<T, RFrom, RTo> Reallocator<T, RFrom, Dynamic, RTo, Dynamic> for DefaultAllocator where
T: Scalar,
RTo: DimName,
RFrom: DimName,
[src]
impl<T, RFrom, RTo> Reallocator<T, RFrom, Dynamic, RTo, Dynamic> for DefaultAllocator where
T: Scalar,
RTo: DimName,
RFrom: DimName,
[src]pub unsafe fn reallocate_copy(
rto: RTo,
cto: Dynamic,
buf: VecStorage<T, RFrom, Dynamic>
) -> VecStorage<T, RTo, Dynamic>
[src]
rto: RTo,
cto: Dynamic,
buf: VecStorage<T, RFrom, Dynamic>
) -> VecStorage<T, RTo, Dynamic>
impl<T, R1, R2, C1, C2> SameShapeAllocator<T, R1, C1, R2, C2> for DefaultAllocator where
T: Scalar,
R1: Dim,
R2: Dim,
C2: Dim,
C1: Dim,
DefaultAllocator: Allocator<T, R1, C1>,
DefaultAllocator: Allocator<T, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, <ShapeConstraint as SameNumberOfColumns<C1, C2>>::Representative>,
ShapeConstraint: SameNumberOfRows<R1, R2>,
ShapeConstraint: SameNumberOfColumns<C1, C2>,
[src]
impl<T, R1, R2, C1, C2> SameShapeAllocator<T, R1, C1, R2, C2> for DefaultAllocator where
T: Scalar,
R1: Dim,
R2: Dim,
C2: Dim,
C1: Dim,
DefaultAllocator: Allocator<T, R1, C1>,
DefaultAllocator: Allocator<T, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, <ShapeConstraint as SameNumberOfColumns<C1, C2>>::Representative>,
ShapeConstraint: SameNumberOfRows<R1, R2>,
ShapeConstraint: SameNumberOfColumns<C1, C2>,
[src]impl<T, R1, R2> SameShapeVectorAllocator<T, R1, R2> for DefaultAllocator where
T: Scalar,
R1: Dim,
R2: Dim,
DefaultAllocator: Allocator<T, R1, Const<1_usize>>,
DefaultAllocator: Allocator<T, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, Const<1_usize>>,
ShapeConstraint: SameNumberOfRows<R1, R2>,
[src]
impl<T, R1, R2> SameShapeVectorAllocator<T, R1, R2> for DefaultAllocator where
T: Scalar,
R1: Dim,
R2: Dim,
DefaultAllocator: Allocator<T, R1, Const<1_usize>>,
DefaultAllocator: Allocator<T, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, Const<1_usize>>,
ShapeConstraint: SameNumberOfRows<R1, R2>,
[src]Auto Trait Implementations
impl RefUnwindSafe for DefaultAllocator
impl RefUnwindSafe for DefaultAllocator
impl Send for DefaultAllocator
impl Send for DefaultAllocator
impl Sync for DefaultAllocator
impl Sync for DefaultAllocator
impl Unpin for DefaultAllocator
impl Unpin for DefaultAllocator
impl UnwindSafe for DefaultAllocator
impl UnwindSafe for DefaultAllocator
Blanket Implementations
impl<T, U> Cast<U> for T where
U: FromCast<T>,
impl<T, U> Cast<U> for T where
U: FromCast<T>,
pub fn cast(self) -> U
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> FromBits<T> for T
impl<T> FromBits<T> for T
pub fn from_bits(t: T) -> T
impl<T> FromCast<T> for T
impl<T> FromCast<T> for T
pub fn from_cast(t: T) -> T
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
pub fn into_bits(self) -> U
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
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<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,