[][src]Struct nphysics2d::solver::ConstraintSet

pub struct ConstraintSet<N: RealField, Handle: BodyHandle, CollHandle: ColliderHandle, Id> {
    pub velocity: LinearConstraints<N, Id>,
    pub position: NonlinearConstraints<N, Handle, CollHandle>,
}

A set of all velocity constraints and non-linear position-based constraints.

Fields

velocity: LinearConstraints<N, Id>

The velocity constraints constructed.

position: NonlinearConstraints<N, Handle, CollHandle>

The position constraints constructed.

Methods

impl<N: RealField, Handle: BodyHandle, CollHandle: ColliderHandle, Id> ConstraintSet<N, Handle, CollHandle, Id>[src]

pub fn new() -> Self[src]

Create a new empty set of constraints.

pub fn len(&self) -> usize[src]

The total number of constraints on this set.

pub fn clear(&mut self)[src]

Remove all constraints from this set.

Auto Trait Implementations

impl<N, Handle, CollHandle, Id> RefUnwindSafe for ConstraintSet<N, Handle, CollHandle, Id> where
    CollHandle: RefUnwindSafe,
    Handle: RefUnwindSafe,
    Id: RefUnwindSafe,
    N: RefUnwindSafe + Scalar

impl<N, Handle, CollHandle, Id> Send for ConstraintSet<N, Handle, CollHandle, Id> where
    Id: Send,
    N: Scalar

impl<N, Handle, CollHandle, Id> Sync for ConstraintSet<N, Handle, CollHandle, Id> where
    Id: Sync,
    N: Scalar

impl<N, Handle, CollHandle, Id> Unpin for ConstraintSet<N, Handle, CollHandle, Id> where
    CollHandle: Unpin,
    Handle: Unpin,
    Id: Unpin,
    N: Scalar + Unpin

impl<N, Handle, CollHandle, Id> UnwindSafe for ConstraintSet<N, Handle, CollHandle, Id> where
    CollHandle: UnwindSafe,
    Handle: UnwindSafe,
    Id: UnwindSafe,
    N: Scalar + UnwindSafe

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

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

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<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,