mech_interpreter/stdlib/
mod.rs

1use crate::*;
2use mech_core::*;
3#[cfg(feature = "matrix")]
4use mech_core::matrix::Matrix;
5
6use paste::paste;
7#[cfg(feature = "matrix")]
8use na::{Vector3, DVector, Vector2, Vector4, RowDVector, Matrix1, Matrix3, Matrix4, RowVector3, RowVector4, RowVector2, DMatrix, Rotation3, Matrix2x3, Matrix3x2, Matrix6, Matrix2};
9use std::ops::*;
10use std::fmt::Debug;
11use std::marker::PhantomData;
12#[cfg(any(feature = "num-traits"))]
13use num_traits::*;
14
15#[cfg(feature = "access")]
16pub mod access;
17#[cfg(feature = "assign")]
18pub mod assign;
19#[cfg(feature = "convert")]
20pub mod convert;
21#[cfg(feature = "matrix")]
22pub mod horzcat;
23#[cfg(feature = "matrix")]
24pub mod vertcat;
25
26pub trait LosslessInto<T> {
27  fn lossless_into(self) -> T;
28}
29
30pub trait LossyFrom<T> {
31  fn lossy_from(value: T) -> Self;
32}