rust_fuzzylogic/prelude.rs
1//! Prelude: convenient re-exports for common fuzzy logic items.
2//!
3//! Bring this module into scope to get the core trait and types
4//! without importing each one individually:
5//!
6//! ```rust
7//! use rust_fuzzylogic::prelude::*;
8//! ```
9//!
10//! Note: you still need to expose this module from `lib.rs` with
11//! `pub mod prelude;` to make it available to users.
12
13// Core scalar and error types
14pub use crate::error::{FuzzyError, Result};
15pub use crate::Float;
16
17// Membership trait and built-in shapes
18pub use crate::membership::trapezoidal::Trapezoidal;
19pub use crate::membership::MembershipFn;
20pub use crate::membership::{Gaussian, Triangular};
21
22// Fuzzy Set Operands
23pub use crate::ops::FuzzyOps;
24
25// Term wrapper around a boxed membership function
26pub use crate::term::Term;
27
28//UniformSampling Functionality
29pub use crate::sampler::{Sampler, UniformSampler};