rust_fuzzylogic/
lib.rs

1pub mod membership;
2
3//Temporary Module Decleration to avoid error
4pub mod aggregate;
5pub mod antecedent;
6pub mod builder;
7pub mod defuzz;
8pub mod error;
9pub mod mamdani;
10pub mod ops;
11pub mod rulespace;
12pub mod sampler;
13pub mod term;
14pub mod variable;
15
16pub mod prelude;
17
18//pub use rust_fuzzylogic::triangular::Triangular;
19
20//type definitions
21#[cfg(all(feature = "f32", feature = "f64"))]
22compile_error!("Enable only one of 'f32' or 'f64'.");
23
24#[cfg(feature = "f32")]
25pub type Float = f32;
26
27#[cfg(not(feature = "f32"))] // default: f64
28pub type Float = f64;
29
30#[cfg(feature = "serde")]
31pub use serde::{Deserialize, Serialize};