Struct nalgebra_glm::DefaultAllocator [−][src]
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]
T: Scalar,
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]
C: Dim,
T: Scalar,
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]
T: Scalar,
R: DimName,
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]
T: Scalar,
CTo: Dim,
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]
T: Scalar,
RTo: DimName,
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,
CFrom: Dim,
CTo: Dim,
[src]
T: Scalar,
CFrom: Dim,
CTo: Dim,
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,
CFrom: Dim,
RTo: DimName,
[src]
T: Scalar,
CFrom: Dim,
RTo: DimName,
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,
CFrom: Dim,
RFrom: Dim,
DefaultAllocator: Allocator<T, RFrom, CFrom>,
[src]
T: Scalar,
CFrom: Dim,
RFrom: Dim,
DefaultAllocator: Allocator<T, RFrom, CFrom>,
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]
T: Scalar,
CTo: Dim,
RFrom: DimName,
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]
T: Scalar,
RTo: DimName,
RFrom: DimName,
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,
C1: Dim,
R2: Dim,
C2: 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]
T: Scalar,
R1: Dim,
C1: Dim,
R2: Dim,
C2: 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>,
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]
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>,
Auto Trait Implementations
impl RefUnwindSafe for DefaultAllocator
impl Send for DefaultAllocator
impl Sync for DefaultAllocator
impl Unpin for DefaultAllocator
impl UnwindSafe for DefaultAllocator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<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>,
[src]
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
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>,