-
Notifications
You must be signed in to change notification settings - Fork 43
Unrecord #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Unrecord #134
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -7,7 +7,7 @@ use std::fmt; | |||||
pub enum CreationError { | ||||||
/// Lowest discernible value must be >= 1. | ||||||
LowIsZero, | ||||||
/// Lowest discernible value must be <= `u64::max_value() / 2` because the highest value is | ||||||
/// Lowest discernible value must be <= \x60u64::MAX / 2\x60 because the highest value is | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You've used this |
||||||
/// a `u64` and the lowest value must be no bigger than half the highest. | ||||||
LowExceedsMax, | ||||||
/// Highest trackable value must be >= 2 * lowest discernible value for some internal | ||||||
|
@@ -78,7 +78,7 @@ impl fmt::Display for CreationError { | |||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ||||||
match self { | ||||||
CreationError::LowIsZero => write!(f, "Lowest discernible value must be >= 1"), | ||||||
CreationError::LowExceedsMax => write!(f, "Lowest discernible value must be <= `u64::max_value() / 2`"), | ||||||
CreationError::LowExceedsMax => write!(f, "Lowest discernible value must be <= \x60u64::MAX / 2\x60"), | ||||||
CreationError::HighLessThanTwiceLow => write!(f, "Highest trackable value must be >= 2 * lowest discernible value for some internal calculations"), | ||||||
CreationError::SigFigExceedsMax => write!(f, "Number of significant digits must be in the range `[0, 5]`"), | ||||||
CreationError::CannotRepresentSigFigBeyondLow => write!(f, "Cannot represent sigfig worth of values beyond the lowest discernible value"), | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I follow why this was made
pub
?