Struct oxygengine_physics_2d::prelude::nalgebra::DefaultAllocator [−][src]
pub struct DefaultAllocator;
An allocator based on GenericArray
and VecStorage
for statically-sized and dynamically-sized
matrices respectively.
Trait Implementations
impl<N, C> Allocator<N, Dynamic, C> for DefaultAllocator where
C: Dim,
N: Scalar,
[src]
impl<N, C> Allocator<N, Dynamic, C> for DefaultAllocator where
C: Dim,
N: Scalar,
[src]type Buffer = VecStorage<N, Dynamic, C>
The type of buffer this allocator can instanciate.
pub unsafe fn allocate_uninitialized(
nrows: Dynamic,
ncols: C
) -> <DefaultAllocator as Allocator<N, Dynamic, C>>::Buffer
[src]
nrows: Dynamic,
ncols: C
) -> <DefaultAllocator as Allocator<N, Dynamic, C>>::Buffer
pub fn allocate_from_iterator<I>(
nrows: Dynamic,
ncols: C,
iter: I
) -> <DefaultAllocator as Allocator<N, Dynamic, C>>::Buffer where
I: IntoIterator<Item = N>,
[src]
nrows: Dynamic,
ncols: C,
iter: I
) -> <DefaultAllocator as Allocator<N, Dynamic, C>>::Buffer where
I: IntoIterator<Item = N>,
impl<N, R, C> Allocator<N, R, C> for DefaultAllocator where
C: DimName,
N: Scalar,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
[src]
impl<N, R, C> Allocator<N, R, C> for DefaultAllocator where
C: DimName,
N: Scalar,
R: DimName,
<R as DimName>::Value: Mul<<C as DimName>::Value>,
<<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>,
[src]type Buffer = ArrayStorage<N, R, C>
The type of buffer this allocator can instanciate.
pub unsafe fn allocate_uninitialized(
R,
C
) -> <DefaultAllocator as Allocator<N, R, C>>::Buffer
[src]
R,
C
) -> <DefaultAllocator as Allocator<N, R, C>>::Buffer
pub fn allocate_from_iterator<I>(
nrows: R,
ncols: C,
iter: I
) -> <DefaultAllocator as Allocator<N, R, C>>::Buffer where
I: IntoIterator<Item = N>,
[src]
nrows: R,
ncols: C,
iter: I
) -> <DefaultAllocator as Allocator<N, R, C>>::Buffer where
I: IntoIterator<Item = N>,
impl<N, R> Allocator<N, R, Dynamic> for DefaultAllocator where
N: Scalar,
R: DimName,
[src]
impl<N, R> Allocator<N, R, Dynamic> for DefaultAllocator where
N: Scalar,
R: DimName,
[src]type Buffer = VecStorage<N, R, Dynamic>
The type of buffer this allocator can instanciate.
pub unsafe fn allocate_uninitialized(
nrows: R,
ncols: Dynamic
) -> <DefaultAllocator as Allocator<N, R, Dynamic>>::Buffer
[src]
nrows: R,
ncols: Dynamic
) -> <DefaultAllocator as Allocator<N, R, Dynamic>>::Buffer
pub fn allocate_from_iterator<I>(
nrows: R,
ncols: Dynamic,
iter: I
) -> <DefaultAllocator as Allocator<N, R, Dynamic>>::Buffer where
I: IntoIterator<Item = N>,
[src]
nrows: R,
ncols: Dynamic,
iter: I
) -> <DefaultAllocator as Allocator<N, R, Dynamic>>::Buffer where
I: IntoIterator<Item = N>,
impl<N, CFrom, CTo> Reallocator<N, Dynamic, CFrom, Dynamic, CTo> for DefaultAllocator where
N: Scalar,
CTo: Dim,
CFrom: Dim,
[src]
impl<N, CFrom, CTo> Reallocator<N, Dynamic, CFrom, Dynamic, CTo> for DefaultAllocator where
N: Scalar,
CTo: Dim,
CFrom: Dim,
[src]pub unsafe fn reallocate_copy(
rto: Dynamic,
cto: CTo,
buf: VecStorage<N, Dynamic, CFrom>
) -> VecStorage<N, Dynamic, CTo>
[src]
rto: Dynamic,
cto: CTo,
buf: VecStorage<N, Dynamic, CFrom>
) -> VecStorage<N, Dynamic, CTo>
impl<N, CFrom, RTo> Reallocator<N, Dynamic, CFrom, RTo, Dynamic> for DefaultAllocator where
N: Scalar,
RTo: DimName,
CFrom: Dim,
[src]
impl<N, CFrom, RTo> Reallocator<N, Dynamic, CFrom, RTo, Dynamic> for DefaultAllocator where
N: Scalar,
RTo: DimName,
CFrom: Dim,
[src]pub unsafe fn reallocate_copy(
rto: RTo,
cto: Dynamic,
buf: VecStorage<N, Dynamic, CFrom>
) -> VecStorage<N, RTo, Dynamic>
[src]
rto: RTo,
cto: Dynamic,
buf: VecStorage<N, Dynamic, CFrom>
) -> VecStorage<N, RTo, Dynamic>
impl<N, RFrom, CFrom, CTo> Reallocator<N, RFrom, CFrom, Dynamic, CTo> for DefaultAllocator where
N: Scalar,
CTo: Dim,
RFrom: DimName,
CFrom: DimName,
<RFrom as DimName>::Value: Mul<<CFrom as DimName>::Value>,
<<RFrom as DimName>::Value as Mul<<CFrom as DimName>::Value>>::Output: ArrayLength<N>,
[src]
impl<N, RFrom, CFrom, CTo> Reallocator<N, RFrom, CFrom, Dynamic, CTo> for DefaultAllocator where
N: Scalar,
CTo: Dim,
RFrom: DimName,
CFrom: DimName,
<RFrom as DimName>::Value: Mul<<CFrom as DimName>::Value>,
<<RFrom as DimName>::Value as Mul<<CFrom as DimName>::Value>>::Output: ArrayLength<N>,
[src]pub unsafe fn reallocate_copy(
rto: Dynamic,
cto: CTo,
buf: ArrayStorage<N, RFrom, CFrom>
) -> VecStorage<N, Dynamic, CTo>
[src]
rto: Dynamic,
cto: CTo,
buf: ArrayStorage<N, RFrom, CFrom>
) -> VecStorage<N, Dynamic, CTo>
impl<N, RFrom, CFrom, RTo, CTo> Reallocator<N, RFrom, CFrom, RTo, CTo> for DefaultAllocator where
N: Scalar,
RTo: DimName,
CTo: DimName,
RFrom: Dim,
CFrom: Dim,
DefaultAllocator: Allocator<N, RFrom, CFrom>,
<RTo as DimName>::Value: Mul<<CTo as DimName>::Value>,
<<RTo as DimName>::Value as Mul<<CTo as DimName>::Value>>::Output: ArrayLength<N>,
[src]
impl<N, RFrom, CFrom, RTo, CTo> Reallocator<N, RFrom, CFrom, RTo, CTo> for DefaultAllocator where
N: Scalar,
RTo: DimName,
CTo: DimName,
RFrom: Dim,
CFrom: Dim,
DefaultAllocator: Allocator<N, RFrom, CFrom>,
<RTo as DimName>::Value: Mul<<CTo as DimName>::Value>,
<<RTo as DimName>::Value as Mul<<CTo as DimName>::Value>>::Output: ArrayLength<N>,
[src]pub unsafe fn reallocate_copy(
rto: RTo,
cto: CTo,
buf: <DefaultAllocator as Allocator<N, RFrom, CFrom>>::Buffer
) -> ArrayStorage<N, RTo, CTo>
[src]
rto: RTo,
cto: CTo,
buf: <DefaultAllocator as Allocator<N, RFrom, CFrom>>::Buffer
) -> ArrayStorage<N, RTo, CTo>
impl<N, RFrom, CFrom, RTo> Reallocator<N, RFrom, CFrom, RTo, Dynamic> for DefaultAllocator where
N: Scalar,
RTo: DimName,
RFrom: DimName,
CFrom: DimName,
<RFrom as DimName>::Value: Mul<<CFrom as DimName>::Value>,
<<RFrom as DimName>::Value as Mul<<CFrom as DimName>::Value>>::Output: ArrayLength<N>,
[src]
impl<N, RFrom, CFrom, RTo> Reallocator<N, RFrom, CFrom, RTo, Dynamic> for DefaultAllocator where
N: Scalar,
RTo: DimName,
RFrom: DimName,
CFrom: DimName,
<RFrom as DimName>::Value: Mul<<CFrom as DimName>::Value>,
<<RFrom as DimName>::Value as Mul<<CFrom as DimName>::Value>>::Output: ArrayLength<N>,
[src]pub unsafe fn reallocate_copy(
rto: RTo,
cto: Dynamic,
buf: ArrayStorage<N, RFrom, CFrom>
) -> VecStorage<N, RTo, Dynamic>
[src]
rto: RTo,
cto: Dynamic,
buf: ArrayStorage<N, RFrom, CFrom>
) -> VecStorage<N, RTo, Dynamic>
impl<N, RFrom, CTo> Reallocator<N, RFrom, Dynamic, Dynamic, CTo> for DefaultAllocator where
N: Scalar,
CTo: Dim,
RFrom: DimName,
[src]
impl<N, RFrom, CTo> Reallocator<N, RFrom, Dynamic, Dynamic, CTo> for DefaultAllocator where
N: Scalar,
CTo: Dim,
RFrom: DimName,
[src]pub unsafe fn reallocate_copy(
rto: Dynamic,
cto: CTo,
buf: VecStorage<N, RFrom, Dynamic>
) -> VecStorage<N, Dynamic, CTo>
[src]
rto: Dynamic,
cto: CTo,
buf: VecStorage<N, RFrom, Dynamic>
) -> VecStorage<N, Dynamic, CTo>
impl<N, RFrom, RTo> Reallocator<N, RFrom, Dynamic, RTo, Dynamic> for DefaultAllocator where
N: Scalar,
RTo: DimName,
RFrom: DimName,
[src]
impl<N, RFrom, RTo> Reallocator<N, RFrom, Dynamic, RTo, Dynamic> for DefaultAllocator where
N: Scalar,
RTo: DimName,
RFrom: DimName,
[src]pub unsafe fn reallocate_copy(
rto: RTo,
cto: Dynamic,
buf: VecStorage<N, RFrom, Dynamic>
) -> VecStorage<N, RTo, Dynamic>
[src]
rto: RTo,
cto: Dynamic,
buf: VecStorage<N, RFrom, Dynamic>
) -> VecStorage<N, RTo, Dynamic>
impl<N, R1, R2, C1, C2> SameShapeAllocator<N, R1, C1, R2, C2> for DefaultAllocator where
N: Scalar,
R2: Dim,
C2: Dim,
R1: Dim,
C1: Dim,
DefaultAllocator: Allocator<N, R1, C1>,
DefaultAllocator: Allocator<N, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, <ShapeConstraint as SameNumberOfColumns<C1, C2>>::Representative>,
ShapeConstraint: SameNumberOfRows<R1, R2>,
ShapeConstraint: SameNumberOfColumns<C1, C2>,
[src]
impl<N, R1, R2, C1, C2> SameShapeAllocator<N, R1, C1, R2, C2> for DefaultAllocator where
N: Scalar,
R2: Dim,
C2: Dim,
R1: Dim,
C1: Dim,
DefaultAllocator: Allocator<N, R1, C1>,
DefaultAllocator: Allocator<N, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, <ShapeConstraint as SameNumberOfColumns<C1, C2>>::Representative>,
ShapeConstraint: SameNumberOfRows<R1, R2>,
ShapeConstraint: SameNumberOfColumns<C1, C2>,
[src]impl<N, R1, R2> SameShapeVectorAllocator<N, R1, R2> for DefaultAllocator where
N: Scalar,
R2: Dim,
R1: Dim,
DefaultAllocator: Allocator<N, R1, U1>,
DefaultAllocator: Allocator<N, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, U1>,
ShapeConstraint: SameNumberOfRows<R1, R2>,
[src]
impl<N, R1, R2> SameShapeVectorAllocator<N, R1, R2> for DefaultAllocator where
N: Scalar,
R2: Dim,
R1: Dim,
DefaultAllocator: Allocator<N, R1, U1>,
DefaultAllocator: Allocator<N, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, U1>,
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> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
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>,