1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#![doc = include_str!("../README.md")]
// This crate uses unsafe, but attempts to minimize its usage. All functions
// that utilize unsafe must explicitly enable it.
#![deny(unsafe_code)]
#![warn(missing_docs, clippy::pedantic)]
#![allow(clippy::module_name_repetitions)]

#[macro_use]
mod fraction;
#[macro_use]
mod twod;
#[cfg(feature = "bytemuck")]
mod pod;
mod point;
mod primes;
mod rect;
mod size;
mod tables;
mod traits;
pub use traits::{
    Abs, FloatConversion, FloatOrInt, FromComponents, IntoComponents, IntoSigned, IntoUnsigned,
    Lp2D, PixelScaling, Pow, Px2D, Ranged, Roots, Round, ScreenScale, ScreenUnit, UPx2D, Unit,
    UnscaledUnit, Zero,
};
/// The measurement units supported by figures.
pub mod units;
/// Utility functions to aide in warning-free development for users of
/// `clippy::pedantic`.
mod utils;

mod angle;
#[cfg(test)]
mod tests;

pub use angle::Angle;
pub use fraction::Fraction;
pub use point::Point;
pub use rect::Rect;
pub use size::Size;