ProjectExt

Trait ProjectExt 

Source
pub trait ProjectExt<T: RealField + Copy, const N: usize, const H: usize>: Project<T, N, H> + Sized {
    // Provided methods
    fn dynamic(&self) -> &dyn Project<T, N, H> { ... }
    fn constraint(&self) -> Constraint<T, &Self, N, H> { ... }
    fn dyn_constraint(&self) -> DynConstraint<'_, T, N, H> { ... }
}
Expand description

Extension trait for types implementing Project to convert it directly into a constraint with associated dual and slack variables.

Provided Methods§

Source

fn dynamic(&self) -> &dyn Project<T, N, H>

Source

fn constraint(&self) -> Constraint<T, &Self, N, H>

Source

fn dyn_constraint(&self) -> DynConstraint<'_, T, N, H>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S: Project<T, N, H>, T: RealField + Copy, const N: usize, const H: usize> ProjectExt<T, N, H> for S