Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ use num_traits::{

mod pow;

/// Represents the ratio between two numbers.
/// Represents the ratio between two integers.
///
/// Converting to a `Ratio<T>` yields `None` in the following cases:
///
/// - The input value is out of the bounds of the integer target type, which, in case of a float, includes positive and negative infinity.
/// - The input value is a float and NaN.
#[derive(Copy, Clone, Debug)]
#[allow(missing_docs)]
pub struct Ratio<T> {
Expand Down