unifrac
A crate for working with normalized fractional values.
It provides several fractional types for Rust:
Primant— a type representing a fraction between 0 and 1 (inclusive).Phase— a type representing a fraction between 0 and 1 (exclusive).
It does not depend on the standard library, so it can be used in no_std contexts.
For more information, see the crate documentation.