pub struct DecimalCheck { /* private fields */ }Expand description
Checks that a rational has a finite decimal representation.
This structure will cache some data to avoid reallocation. This way running the check for multiple rational numbers can be slightly more efficient.
Implementations§
Source§impl DecimalCheck
impl DecimalCheck
pub fn is_decimal(&mut self, r: &BigRational) -> bool
Trait Implementations§
Source§impl Default for DecimalCheck
impl Default for DecimalCheck
Source§fn default() -> DecimalCheck
fn default() -> DecimalCheck
Returns the “default value” for a type. Read more