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 system;
14pub mod term;
15pub mod variable;
16
17pub mod prelude;
18
19//pub use rust_fuzzylogic::triangular::Triangular;
20
21//type definitions
22#[cfg(all(feature = "f32", feature = "f64"))]
23compile_error!("Enable only one of 'f32' or 'f64'.");
24
25#[cfg(feature = "f32")]
26pub type Float = f32;
27
28#[cfg(not(feature = "f32"))] // default: f64
29pub type Float = f64;
30
31#[cfg(feature = "serde")]
32pub use serde::{Deserialize, Serialize};