beetle_fraction/
lib.rs

1/*!
2    # Beetle-Fraction
3
4    A set of functions and structs for doing math with rational numbers.
5
6    Example program:
7    ```
8    # use beetle_fraction::*;
9    # use beetle_fraction::prelude::*;
10    fn main() {
11        let half = frac![1, 2];
12        assert_eq!(half * half, frac![1, 4]);
13    }
14    ```
15*/
16
17#![deny(missing_docs, clippy::unwrap_used)]
18
19// Modules
20pub mod big_fraction;
21pub mod fraction;
22pub mod macros;
23pub mod traits;
24pub mod types;
25
26/// A prelude for frequently used types, traits, & macros
27pub mod prelude {
28    pub use crate::fraction::Fraction;
29    pub use crate::macros::*;
30    pub use crate::traits::*;
31}