AsNalgebraCanonicalInterface

Trait AsNalgebraCanonicalInterface 

Source
pub trait AsNalgebraCanonicalInterface<T>: AsNalgebraNonCanonicalInterface<T> + Copy
where T: Copy,
{ // Required methods fn as_nalgebra(&self) -> &T; fn as_nalgebra_mut(&mut self) -> &mut T; }
Expand description

Trait to interpret canonical math data structures of other math libs as their analogs in nalgebra to use operations of nalgebra.

Required Methods§

Source

fn as_nalgebra(&self) -> &T

Interpret this data structure as nalgebra analog to use its operations.

Source

fn as_nalgebra_mut(&mut self) -> &mut T

Interpret this data structure mutably as nalgebra analog to use its operations.

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<Scalar, Any> AsNalgebraCanonicalInterface<Matrix<Scalar, Const<2>, Const<1>, ArrayStorage<Scalar, 2, 1>>> for Any
where Scalar: ScalarInterface, Any: X2CanonicalInterface<Scalar = Scalar> + Copy,