irox-units 0.5.0

Physical Quantities, Units, & Reference Frames Library
Documentation
// SPDX-License-Identifier: MIT
// Copyright 2025 IROX Contributors
//

//!
//! *The little Units Library that could*
//!
//! Module Structure:
//! ------------------
//!
//! * [`bounds`] - Bounding Boxes and Range Checks
//! * [`shapes`] - Ways to define and describe shapes
//!     * [`shapes::circular`] - `CircularAspect` enum and `CircularDimension` struct, describes a circle by radius or
//!       diameter with appropriate length units.
//!     * [`shapes::elliptical`] - `Ellipse` struct, describes an ellipse using two `CircularDimension` axes and an optional
//!       `CompassDirection` orientation of the first axis
//! * [`units`] - Physical Quantities
//!   * [`units::angle`] -  Angle Types, `Angle`, `AngleUnits` for `Degrees` and `Radians`
//!   * [`units::compass`] - Compass Types, `Compass`, and the absolute types: `Heading`, `Track`, `Bearing`, `Course`,
//!     `Azimuth`, `CompassOffest`, and the relative type `RelativeBearing`
//!   * [`units::datasize`] - Computer Data Sizes, `DataSize` representing `Bytes`, `Kilobytes`, etc
//!   * [`units::length`] - The SI `Length` quantity, representing `Meters`, `Feet`, etc
//!   * [`units::speed`] - The SI `Speed` quantity, representing `MetersPerSecond`, `Knots`, etc
//!   * [`units::temperature`] - The SI `Temperature` quantity, representing `Celsius`, `Kelvin`, etc

#![forbid(unsafe_code)]
#![allow(clippy::cast_possible_truncation)]
#![allow(clippy::cast_precision_loss)]
#![allow(clippy::cast_sign_loss)]
#![allow(clippy::module_name_repetitions)]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod bounds;
pub mod shapes;
#[macro_use]
pub mod units;
pub mod prefixes;
pub mod quantities;