Crate unifrac

Crate unifrac 

Source
Expand description

This crate 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. Be aware that tests do require the standard library, at least for now.

Structs§

Phase
A fraction between 0 and 1 (exclusive).
Primant
A fraction between 0 and 1 (inclusive).