rust_fuzzylogic/
lib.rs

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