Struct bevy_rapier3d::prelude::nalgebra::Dynamic [−][src]
pub struct Dynamic { /* fields omitted */ }
Expand description
Dim of dynamically-sized algebraic entities.
Implementations
Trait Implementations
type Buffer = VecStorage<T, Dynamic, C>
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]
pub unsafe fn allocate_uninitialized(
nrows: Dynamic,
ncols: C
) -> MaybeUninit<<DefaultAllocator as Allocator<T, Dynamic, C>>::Buffer>
[src]Allocates a buffer with the given number of rows and columns without initializing its content.
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]
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]Allocates a buffer initialized with the content of the given iterator.
type Buffer = VecStorage<T, R, Dynamic>
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]
pub unsafe fn allocate_uninitialized(
nrows: R,
ncols: Dynamic
) -> MaybeUninit<<DefaultAllocator as Allocator<T, R, Dynamic>>::Buffer>
[src]Allocates a buffer with the given number of rows and columns without initializing its content.
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]
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]Allocates a buffer initialized with the content of the given iterator.
Gets the compile-time value of Self
. Returns None
if it is not known, i.e., if Self = Dynamic
. Read more
Builds an instance of Self
from a run-time value. Panics if Self
is a type-level
integer and dim != Self::try_to_usize().unwrap()
. Read more
Gets the run-time value of self
. For type-level integers, this is the same as
Self::try_to_usize().unwrap()
. Read more
type Representative = D
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level
constant. Read more
type Representative = D
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level
constant. Read more
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]
pub unsafe fn reallocate_copy(
rto: Dynamic,
cto: CTo,
buf: ArrayStorage<T, RFROM, CFROM>
) -> VecStorage<T, Dynamic, CTo>
[src]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
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]
pub unsafe fn reallocate_copy(
rto: RTo,
cto: Dynamic,
buf: ArrayStorage<T, RFROM, CFROM>
) -> VecStorage<T, RTo, Dynamic>
[src]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
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]
pub unsafe fn reallocate_copy(
rto: Dynamic,
cto: CTo,
buf: VecStorage<T, Dynamic, CFrom>
) -> VecStorage<T, Dynamic, CTo>
[src]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
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]
pub unsafe fn reallocate_copy(
rto: RTo,
cto: Dynamic,
buf: VecStorage<T, Dynamic, CFrom>
) -> VecStorage<T, RTo, Dynamic>
[src]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
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]
pub unsafe fn reallocate_copy(
rto: Dynamic,
cto: CTo,
buf: VecStorage<T, RFrom, Dynamic>
) -> VecStorage<T, Dynamic, CTo>
[src]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
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]
pub unsafe fn reallocate_copy(
rto: RTo,
cto: Dynamic,
buf: VecStorage<T, RFrom, Dynamic>
) -> VecStorage<T, RTo, Dynamic>
[src]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
impl<T, C1, C2> ReshapableStorage<T, Dynamic, C1, Dynamic, C2> for VecStorage<T, Dynamic, C1> where
T: Scalar,
C1: Dim,
C2: Dim,
[src]
impl<T, C1, C2> ReshapableStorage<T, Dynamic, C1, Dynamic, C2> for VecStorage<T, Dynamic, C1> where
T: Scalar,
C1: Dim,
C2: Dim,
[src]type Output = VecStorage<T, Dynamic, C2>
type Output = VecStorage<T, Dynamic, C2>
The reshaped storage type.
pub fn reshape_generic(
self,
nrows: Dynamic,
ncols: C2
) -> <VecStorage<T, Dynamic, C1> as ReshapableStorage<T, Dynamic, C1, Dynamic, C2>>::Output
[src]
pub fn reshape_generic(
self,
nrows: Dynamic,
ncols: C2
) -> <VecStorage<T, Dynamic, C1> as ReshapableStorage<T, Dynamic, C1, Dynamic, C2>>::Output
[src]Reshapes the storage into the output storage type.
impl<T, C1, R2> ReshapableStorage<T, Dynamic, C1, R2, Dynamic> for VecStorage<T, Dynamic, C1> where
T: Scalar,
C1: Dim,
R2: DimName,
[src]
impl<T, C1, R2> ReshapableStorage<T, Dynamic, C1, R2, Dynamic> for VecStorage<T, Dynamic, C1> where
T: Scalar,
C1: Dim,
R2: DimName,
[src]type Output = VecStorage<T, R2, Dynamic>
type Output = VecStorage<T, R2, Dynamic>
The reshaped storage type.
pub fn reshape_generic(
self,
nrows: R2,
ncols: Dynamic
) -> <VecStorage<T, Dynamic, C1> as ReshapableStorage<T, Dynamic, C1, R2, Dynamic>>::Output
[src]
pub fn reshape_generic(
self,
nrows: R2,
ncols: Dynamic
) -> <VecStorage<T, Dynamic, C1> as ReshapableStorage<T, Dynamic, C1, R2, Dynamic>>::Output
[src]Reshapes the storage into the output storage type.
impl<T, R1, C2> ReshapableStorage<T, R1, Dynamic, Dynamic, C2> for VecStorage<T, R1, Dynamic> where
T: Scalar,
C2: Dim,
R1: DimName,
[src]
impl<T, R1, C2> ReshapableStorage<T, R1, Dynamic, Dynamic, C2> for VecStorage<T, R1, Dynamic> where
T: Scalar,
C2: Dim,
R1: DimName,
[src]type Output = VecStorage<T, Dynamic, C2>
type Output = VecStorage<T, Dynamic, C2>
The reshaped storage type.
pub fn reshape_generic(
self,
nrows: Dynamic,
ncols: C2
) -> <VecStorage<T, R1, Dynamic> as ReshapableStorage<T, R1, Dynamic, Dynamic, C2>>::Output
[src]
pub fn reshape_generic(
self,
nrows: Dynamic,
ncols: C2
) -> <VecStorage<T, R1, Dynamic> as ReshapableStorage<T, R1, Dynamic, Dynamic, C2>>::Output
[src]Reshapes the storage into the output storage type.
impl<T, R1, R2> ReshapableStorage<T, R1, Dynamic, R2, Dynamic> for VecStorage<T, R1, Dynamic> where
T: Scalar,
R1: DimName,
R2: DimName,
[src]
impl<T, R1, R2> ReshapableStorage<T, R1, Dynamic, R2, Dynamic> for VecStorage<T, R1, Dynamic> where
T: Scalar,
R1: DimName,
R2: DimName,
[src]type Output = VecStorage<T, R2, Dynamic>
type Output = VecStorage<T, R2, Dynamic>
The reshaped storage type.
pub fn reshape_generic(
self,
nrows: R2,
ncols: Dynamic
) -> <VecStorage<T, R1, Dynamic> as ReshapableStorage<T, R1, Dynamic, R2, Dynamic>>::Output
[src]
pub fn reshape_generic(
self,
nrows: R2,
ncols: Dynamic
) -> <VecStorage<T, R1, Dynamic> as ReshapableStorage<T, R1, Dynamic, R2, Dynamic>>::Output
[src]Reshapes the storage into the output storage type.
type Representative = D
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level
constant. Read more
type Representative = D
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level
constant. Read more
type Representative = D
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level
constant. Read more
type Representative = D
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level
constant. Read more
type Representative = D
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level
constant. Read more
type Representative = D
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level
constant. Read more
impl<T, C> Storage<T, Dynamic, C> for VecStorage<T, Dynamic, C> where
C: Dim,
T: Scalar,
DefaultAllocator: Allocator<T, Dynamic, C>,
<DefaultAllocator as Allocator<T, Dynamic, C>>::Buffer == VecStorage<T, Dynamic, C>,
[src]
impl<T, C> Storage<T, Dynamic, C> for VecStorage<T, Dynamic, C> where
C: Dim,
T: Scalar,
DefaultAllocator: Allocator<T, Dynamic, C>,
<DefaultAllocator as Allocator<T, Dynamic, C>>::Buffer == VecStorage<T, Dynamic, C>,
[src]The dimension of the matrix at run-time. Arr length of zero indicates the additive identity
element of any dimension. Must be equal to Self::dimension()
if it is not None
. Read more
The spacing between consecutive row elements and consecutive column elements. Read more
Indicates whether this data buffer stores its elements contiguously.
pub fn into_owned(
self
) -> <DefaultAllocator as Allocator<T, Dynamic, C>>::Buffer where
DefaultAllocator: Allocator<T, Dynamic, C>,
[src]
pub fn into_owned(
self
) -> <DefaultAllocator as Allocator<T, Dynamic, C>>::Buffer where
DefaultAllocator: Allocator<T, Dynamic, C>,
[src]Builds a matrix data storage that does not contain any reference.
pub fn clone_owned(
&self
) -> <DefaultAllocator as Allocator<T, Dynamic, C>>::Buffer where
DefaultAllocator: Allocator<T, Dynamic, C>,
[src]
pub fn clone_owned(
&self
) -> <DefaultAllocator as Allocator<T, Dynamic, C>>::Buffer where
DefaultAllocator: Allocator<T, Dynamic, C>,
[src]Clones this data storage to one that does not contain any reference.
Compute the index corresponding to the irow-th row and icol-th column of this matrix. The index must be such that the following holds: Read more
Gets the address of the i-th matrix component without performing bound-checking.
Gets the address of the i-th matrix component without performing bound-checking.
Retrieves a reference to the i-th element without bound-checking.
Retrieves a reference to the i-th element without bound-checking.
impl<T, R> Storage<T, R, Dynamic> for VecStorage<T, R, Dynamic> where
T: Scalar,
R: DimName,
DefaultAllocator: Allocator<T, R, Dynamic>,
<DefaultAllocator as Allocator<T, R, Dynamic>>::Buffer == VecStorage<T, R, Dynamic>,
[src]
impl<T, R> Storage<T, R, Dynamic> for VecStorage<T, R, Dynamic> where
T: Scalar,
R: DimName,
DefaultAllocator: Allocator<T, R, Dynamic>,
<DefaultAllocator as Allocator<T, R, Dynamic>>::Buffer == VecStorage<T, R, Dynamic>,
[src]type CStride = R
type CStride = R
The static stride of this storage’s columns.
The dimension of the matrix at run-time. Arr length of zero indicates the additive identity
element of any dimension. Must be equal to Self::dimension()
if it is not None
. Read more
The spacing between consecutive row elements and consecutive column elements. Read more
Indicates whether this data buffer stores its elements contiguously.
pub fn into_owned(
self
) -> <DefaultAllocator as Allocator<T, R, Dynamic>>::Buffer where
DefaultAllocator: Allocator<T, R, Dynamic>,
[src]
pub fn into_owned(
self
) -> <DefaultAllocator as Allocator<T, R, Dynamic>>::Buffer where
DefaultAllocator: Allocator<T, R, Dynamic>,
[src]Builds a matrix data storage that does not contain any reference.
pub fn clone_owned(
&self
) -> <DefaultAllocator as Allocator<T, R, Dynamic>>::Buffer where
DefaultAllocator: Allocator<T, R, Dynamic>,
[src]
pub fn clone_owned(
&self
) -> <DefaultAllocator as Allocator<T, R, Dynamic>>::Buffer where
DefaultAllocator: Allocator<T, R, Dynamic>,
[src]Clones this data storage to one that does not contain any reference.
Compute the index corresponding to the irow-th row and icol-th column of this matrix. The index must be such that the following holds: Read more
Gets the address of the i-th matrix component without performing bound-checking.
Gets the address of the i-th matrix component without performing bound-checking.
Retrieves a reference to the i-th element without bound-checking.
Retrieves a reference to the i-th element without bound-checking.
impl<T, C> StorageMut<T, Dynamic, C> for VecStorage<T, Dynamic, C> where
C: Dim,
T: Scalar,
DefaultAllocator: Allocator<T, Dynamic, C>,
<DefaultAllocator as Allocator<T, Dynamic, C>>::Buffer == VecStorage<T, Dynamic, C>,
[src]
impl<T, C> StorageMut<T, Dynamic, C> for VecStorage<T, Dynamic, C> where
C: Dim,
T: Scalar,
DefaultAllocator: Allocator<T, Dynamic, C>,
<DefaultAllocator as Allocator<T, Dynamic, C>>::Buffer == VecStorage<T, Dynamic, C>,
[src]Retrieves the mutable data buffer as a contiguous slice. Read more
Gets the mutable address of the i-th matrix component without performing bound-checking.
Gets the mutable address of the i-th matrix component without performing bound-checking.
Retrieves a mutable reference to the i-th element without bound-checking.
Retrieves a mutable reference to the element at (irow, icol)
without bound-checking.
Swaps two elements using their linear index without bound-checking.
impl<T, R> StorageMut<T, R, Dynamic> for VecStorage<T, R, Dynamic> where
T: Scalar,
R: DimName,
DefaultAllocator: Allocator<T, R, Dynamic>,
<DefaultAllocator as Allocator<T, R, Dynamic>>::Buffer == VecStorage<T, R, Dynamic>,
[src]
impl<T, R> StorageMut<T, R, Dynamic> for VecStorage<T, R, Dynamic> where
T: Scalar,
R: DimName,
DefaultAllocator: Allocator<T, R, Dynamic>,
<DefaultAllocator as Allocator<T, R, Dynamic>>::Buffer == VecStorage<T, R, Dynamic>,
[src]Retrieves the mutable data buffer as a contiguous slice. Read more
Gets the mutable address of the i-th matrix component without performing bound-checking.
Gets the mutable address of the i-th matrix component without performing bound-checking.
Retrieves a mutable reference to the i-th element without bound-checking.
Retrieves a mutable reference to the element at (irow, icol)
without bound-checking.
Swaps two elements using their linear index without bound-checking.
impl<T, C> ContiguousStorage<T, Dynamic, C> for VecStorage<T, Dynamic, C> where
C: Dim,
T: Scalar,
DefaultAllocator: Allocator<T, Dynamic, C>,
<DefaultAllocator as Allocator<T, Dynamic, C>>::Buffer == VecStorage<T, Dynamic, C>,
[src]impl<T, R> ContiguousStorage<T, R, Dynamic> for VecStorage<T, R, Dynamic> where
T: Scalar,
R: DimName,
DefaultAllocator: Allocator<T, R, Dynamic>,
<DefaultAllocator as Allocator<T, R, Dynamic>>::Buffer == VecStorage<T, R, Dynamic>,
[src]impl<T, C> ContiguousStorageMut<T, Dynamic, C> for VecStorage<T, Dynamic, C> where
C: Dim,
T: Scalar,
DefaultAllocator: Allocator<T, Dynamic, C>,
<DefaultAllocator as Allocator<T, Dynamic, C>>::Buffer == VecStorage<T, Dynamic, C>,
[src]impl<T, R> ContiguousStorageMut<T, R, Dynamic> for VecStorage<T, R, Dynamic> where
T: Scalar,
R: DimName,
DefaultAllocator: Allocator<T, R, Dynamic>,
<DefaultAllocator as Allocator<T, R, Dynamic>>::Buffer == VecStorage<T, R, Dynamic>,
[src]Auto Trait Implementations
impl RefUnwindSafe for Dynamic
impl UnwindSafe for Dynamic
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
pub fn vzip(self) -> V