[][src]Struct na::base::dimension::Dynamic

pub struct Dynamic { /* fields omitted */ }

Dim of dynamically-sized algebraic entities.

Methods

impl Dynamic[src]

pub fn new(value: usize) -> Dynamic[src]

A dynamic size equal to value.

Trait Implementations

impl<N, R> StorageMut<N, R, Dynamic> for VecStorage<N, R, Dynamic> where
    N: Scalar,
    R: DimName,
    DefaultAllocator: Allocator<N, R, Dynamic>,
    <DefaultAllocator as Allocator<N, R, Dynamic>>::Buffer == VecStorage<N, R, Dynamic>, 
[src]

unsafe default fn get_address_unchecked_linear_mut(
    &mut self,
    i: usize
) -> *mut N
[src]

Gets the mutable address of the i-th matrix component without performing bound-checking.

unsafe default fn get_address_unchecked_mut(
    &mut self,
    irow: usize,
    icol: usize
) -> *mut N
[src]

Gets the mutable address of the i-th matrix component without performing bound-checking.

unsafe default fn get_unchecked_linear_mut(&mut self, i: usize) -> &mut N[src]

Retrieves a mutable reference to the i-th element without bound-checking.

unsafe default fn get_unchecked_mut(
    &mut self,
    irow: usize,
    icol: usize
) -> &mut N
[src]

Retrieves a mutable reference to the element at (irow, icol) without bound-checking.

unsafe default fn swap_unchecked_linear(&mut self, i1: usize, i2: usize)[src]

Swaps two elements using their linear index without bound-checking.

unsafe default fn swap_unchecked(
    &mut self,
    row_col1: (usize, usize),
    row_col2: (usize, usize)
)
[src]

Swaps two elements without bound-checking.

impl<N, C> StorageMut<N, Dynamic, C> for VecStorage<N, Dynamic, C> where
    C: Dim,
    N: Scalar,
    DefaultAllocator: Allocator<N, Dynamic, C>,
    <DefaultAllocator as Allocator<N, Dynamic, C>>::Buffer == VecStorage<N, Dynamic, C>, 
[src]

unsafe default fn get_address_unchecked_linear_mut(
    &mut self,
    i: usize
) -> *mut N
[src]

Gets the mutable address of the i-th matrix component without performing bound-checking.

unsafe default fn get_address_unchecked_mut(
    &mut self,
    irow: usize,
    icol: usize
) -> *mut N
[src]

Gets the mutable address of the i-th matrix component without performing bound-checking.

unsafe default fn get_unchecked_linear_mut(&mut self, i: usize) -> &mut N[src]

Retrieves a mutable reference to the i-th element without bound-checking.

unsafe default fn get_unchecked_mut(
    &mut self,
    irow: usize,
    icol: usize
) -> &mut N
[src]

Retrieves a mutable reference to the element at (irow, icol) without bound-checking.

unsafe default fn swap_unchecked_linear(&mut self, i1: usize, i2: usize)[src]

Swaps two elements using their linear index without bound-checking.

unsafe default fn swap_unchecked(
    &mut self,
    row_col1: (usize, usize),
    row_col2: (usize, usize)
)
[src]

Swaps two elements without bound-checking.

impl Copy for Dynamic[src]

impl IsDynamic for Dynamic[src]

impl Clone for Dynamic[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<D> DimDiv<D> for Dynamic where
    D: Dim
[src]

type Output = Dynamic

impl<D> DimDiv<Dynamic> for D where
    D: DimName
[src]

type Output = Dynamic

impl<N, C> Storage<N, Dynamic, C> for VecStorage<N, Dynamic, C> where
    C: Dim,
    N: Scalar,
    DefaultAllocator: Allocator<N, Dynamic, C>,
    <DefaultAllocator as Allocator<N, Dynamic, C>>::Buffer == VecStorage<N, Dynamic, C>, 
[src]

type RStride = U1

The static stride of this storage's rows.

type CStride = Dynamic

The static stride of this storage's columns.

default fn linear_index(&self, irow: usize, icol: usize) -> usize[src]

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

unsafe default fn get_address_unchecked_linear(&self, i: usize) -> *const N[src]

Gets the address of the i-th matrix component without performing bound-checking.

unsafe default fn get_address_unchecked(
    &self,
    irow: usize,
    icol: usize
) -> *const N
[src]

Gets the address of the i-th matrix component without performing bound-checking.

unsafe default fn get_unchecked_linear(&self, i: usize) -> &N[src]

Retrieves a reference to the i-th element without bound-checking.

unsafe default fn get_unchecked(&self, irow: usize, icol: usize) -> &N[src]

Retrieves a reference to the i-th element without bound-checking.

impl<N, R> Storage<N, R, Dynamic> for VecStorage<N, R, Dynamic> where
    N: Scalar,
    R: DimName,
    DefaultAllocator: Allocator<N, R, Dynamic>,
    <DefaultAllocator as Allocator<N, R, Dynamic>>::Buffer == VecStorage<N, R, Dynamic>, 
[src]

type RStride = U1

The static stride of this storage's rows.

type CStride = R

The static stride of this storage's columns.

default fn linear_index(&self, irow: usize, icol: usize) -> usize[src]

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

unsafe default fn get_address_unchecked_linear(&self, i: usize) -> *const N[src]

Gets the address of the i-th matrix component without performing bound-checking.

unsafe default fn get_address_unchecked(
    &self,
    irow: usize,
    icol: usize
) -> *const N
[src]

Gets the address of the i-th matrix component without performing bound-checking.

unsafe default fn get_unchecked_linear(&self, i: usize) -> &N[src]

Retrieves a reference to the i-th element without bound-checking.

unsafe default fn get_unchecked(&self, irow: usize, icol: usize) -> &N[src]

Retrieves a reference to the i-th element without bound-checking.

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.

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.

impl<D> DimMax<Dynamic> for D where
    D: DimName
[src]

type Output = Dynamic

impl<D> DimMax<D> for Dynamic where
    D: Dim
[src]

type Output = Dynamic

impl PartialEq<Dynamic> for Dynamic[src]

impl<D> SameNumberOfColumns<D, Dynamic> for ShapeConstraint where
    D: DimName
[src]

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<D> SameNumberOfColumns<Dynamic, D> for ShapeConstraint where
    D: DimName
[src]

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<D> SameDimension<D, Dynamic> for ShapeConstraint where
    D: DimName
[src]

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<D> SameDimension<Dynamic, D> for ShapeConstraint where
    D: DimName
[src]

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<N, R> ContiguousStorageMut<N, R, Dynamic> for VecStorage<N, R, Dynamic> where
    N: Scalar,
    R: DimName,
    DefaultAllocator: Allocator<N, R, Dynamic>,
    <DefaultAllocator as Allocator<N, R, Dynamic>>::Buffer == VecStorage<N, R, Dynamic>, 
[src]

impl<N, C> ContiguousStorageMut<N, Dynamic, C> for VecStorage<N, Dynamic, C> where
    C: Dim,
    N: Scalar,
    DefaultAllocator: Allocator<N, Dynamic, C>,
    <DefaultAllocator as Allocator<N, Dynamic, C>>::Buffer == VecStorage<N, Dynamic, C>, 
[src]

impl<D> DimEq<D, Dynamic> for ShapeConstraint where
    D: DimName
[src]

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<D> DimEq<Dynamic, D> for ShapeConstraint where
    D: DimName
[src]

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<D> DimAdd<Dynamic> for D where
    D: DimName
[src]

type Output = Dynamic

impl<D> DimAdd<D> for Dynamic where
    D: Dim
[src]

type Output = Dynamic

impl Dim for Dynamic[src]

default fn is<D>() -> bool where
    D: Dim
[src]

impl IsNotStaticOne for Dynamic[src]

impl Debug for Dynamic[src]

impl<N, CFrom, CTo> Reallocator<N, Dynamic, CFrom, Dynamic, CTo> for DefaultAllocator where
    CFrom: Dim,
    CTo: Dim,
    N: Scalar
[src]

impl<N, RFrom, CTo> Reallocator<N, RFrom, Dynamic, Dynamic, CTo> for DefaultAllocator where
    CTo: Dim,
    N: Scalar,
    RFrom: DimName
[src]

impl<N, RFrom, CFrom, RTo> Reallocator<N, RFrom, CFrom, RTo, Dynamic> for DefaultAllocator where
    CFrom: DimName,
    N: Scalar,
    RFrom: DimName,
    RTo: 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, CFrom, RTo> Reallocator<N, Dynamic, CFrom, RTo, Dynamic> for DefaultAllocator where
    CFrom: Dim,
    N: Scalar,
    RTo: DimName
[src]

impl<N, RFrom, CFrom, CTo> Reallocator<N, RFrom, CFrom, Dynamic, CTo> for DefaultAllocator where
    CFrom: DimName,
    CTo: Dim,
    N: Scalar,
    RFrom: 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, RTo> Reallocator<N, RFrom, Dynamic, RTo, Dynamic> for DefaultAllocator where
    N: Scalar,
    RFrom: DimName,
    RTo: DimName
[src]

impl<D> DimSub<Dynamic> for D where
    D: DimName
[src]

type Output = Dynamic

impl<D> DimSub<D> for Dynamic where
    D: Dim
[src]

type Output = Dynamic

impl Add<usize> for Dynamic[src]

type Output = Dynamic

The resulting type after applying the + operator.

impl<D> SameNumberOfRows<Dynamic, D> for ShapeConstraint where
    D: DimName
[src]

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<D> SameNumberOfRows<D, Dynamic> for ShapeConstraint where
    D: DimName
[src]

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<D> DimMin<Dynamic> for D where
    D: DimName
[src]

type Output = Dynamic

impl<D> DimMin<D> for Dynamic where
    D: Dim
[src]

type Output = Dynamic

impl Eq for Dynamic[src]

impl Sub<usize> for Dynamic[src]

type Output = Dynamic

The resulting type after applying the - operator.

impl<D> DimMul<D> for Dynamic where
    D: Dim
[src]

type Output = Dynamic

impl<D> DimMul<Dynamic> for D where
    D: DimName
[src]

type Output = Dynamic

impl<N, C> ContiguousStorage<N, Dynamic, C> for VecStorage<N, Dynamic, C> where
    C: Dim,
    N: Scalar,
    DefaultAllocator: Allocator<N, Dynamic, C>,
    <DefaultAllocator as Allocator<N, Dynamic, C>>::Buffer == VecStorage<N, Dynamic, C>, 
[src]

impl<N, R> ContiguousStorage<N, R, Dynamic> for VecStorage<N, R, Dynamic> where
    N: Scalar,
    R: DimName,
    DefaultAllocator: Allocator<N, R, Dynamic>,
    <DefaultAllocator as Allocator<N, R, Dynamic>>::Buffer == VecStorage<N, R, Dynamic>, 
[src]

Auto Trait Implementations

impl Send for Dynamic

impl Sync for Dynamic

Blanket Implementations

impl<V> IntoVec for V[src]

impl<V> IntoPnt for V[src]

impl<T> IntoPnt for T where
    T: Scalar
[src]

impl<T> IntoPnt for T where
    T: Scalar
[src]

impl<T> IntoPnt for T where
    T: Scalar
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Any + Debug
[src]

default fn is<T>() -> bool where
    T: Scalar
[src]

Tests if Self the same as the type T Read more

impl<D> DimAdd for D where
    D: DimName
[src]

type Output = Dynamic

impl<D1, D2> DimAdd for D1 where
    D1: DimName,
    D2: DimName,
    <D1 as DimName>::Value: Add<<D2 as DimName>::Value>,
    <<D1 as DimName>::Value as Add<<D2 as DimName>::Value>>::Output: NamedDim
[src]

type Output = <<<D1 as DimName>::Value as Add<<D2 as DimName>::Value>>::Output as NamedDim>::Name

impl<D1, D2> DimMul for D1 where
    D1: DimName,
    D2: DimName,
    <D1 as DimName>::Value: Mul<<D2 as DimName>::Value>,
    <<D1 as DimName>::Value as Mul<<D2 as DimName>::Value>>::Output: NamedDim
[src]

type Output = <<<D1 as DimName>::Value as Mul<<D2 as DimName>::Value>>::Output as NamedDim>::Name

impl<D> DimMul for D where
    D: DimName
[src]

type Output = Dynamic

impl<D1, D2> DimSub for D1 where
    D1: DimName,
    D2: DimName,
    <D1 as DimName>::Value: Sub<<D2 as DimName>::Value>,
    <<D1 as DimName>::Value as Sub<<D2 as DimName>::Value>>::Output: NamedDim
[src]

type Output = <<<D1 as DimName>::Value as Sub<<D2 as DimName>::Value>>::Output as NamedDim>::Name

impl<D> DimSub for D where
    D: DimName
[src]

type Output = Dynamic

impl<D> DimDiv for D where
    D: DimName
[src]

type Output = Dynamic

impl<D1, D2> DimDiv for D1 where
    D1: DimName,
    D2: DimName,
    <D1 as DimName>::Value: Div<<D2 as DimName>::Value>,
    <<D1 as DimName>::Value as Div<<D2 as DimName>::Value>>::Output: NamedDim
[src]

type Output = <<<D1 as DimName>::Value as Div<<D2 as DimName>::Value>>::Output as NamedDim>::Name

impl<D> DimMin for D where
    D: DimName
[src]

type Output = Dynamic

impl<D1, D2> DimMin for D1 where
    D1: DimName,
    D2: DimName,
    <D1 as DimName>::Value: Min<<D2 as DimName>::Value>,
    <<D1 as DimName>::Value as Min<<D2 as DimName>::Value>>::Output: NamedDim
[src]

type Output = <<<D1 as DimName>::Value as Min<<D2 as DimName>::Value>>::Output as NamedDim>::Name

impl<D1, D2> DimMax for D1 where
    D1: DimName,
    D2: DimName,
    <D1 as DimName>::Value: Max<<D2 as DimName>::Value>,
    <<D1 as DimName>::Value as Max<<D2 as DimName>::Value>>::Output: NamedDim
[src]

type Output = <<<D1 as DimName>::Value as Max<<D2 as DimName>::Value>>::Output as NamedDim>::Name

impl<D> DimMax for D where
    D: DimName
[src]

type Output = Dynamic

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]