deep_causality_num_rational 0.1.8

Exact rational number type (the field of fractions of an integral domain) for deep_causality.
Documentation
/*
 * SPDX-License-Identifier: MIT
 * Copyright (c) 2023 - 2026. The DeepCausality Authors and Contributors. All Rights Reserved.
 */

#![cfg_attr(not(feature = "std"), no_std)]
extern crate core;

// Private re-exports so the `rational` module keeps resolving these through `crate::` paths.
use deep_causality_algebra::{
    Annihilating, Associative, Commutative, Distributive, EuclideanDomain, Invertible,
};
use deep_causality_num::{One, SignedInt, Zero};

pub mod hom;
mod rational;

// The rational numbers ℚ — the field of fractions of an integral domain.
pub use crate::hom::IntToRational;
pub use crate::rational::rational_number::{Rational, RationalScalar};