pub struct ExpRange(pub u32, pub u32);
Expand description
This represents the non-inclusive range of exponents that constitute a valid
non-compact significand in the given base. You only need to use this if manually
defining a custom base (if performance is non-critical I would recommend using the
create_default_base
macro).
§Examples
use bignumbe_rs::{ExpRange, Binary, Base};
let ExpRange(min_exp, max_exp) = Binary::calculate_ranges().0;
// Since the range of valid significands for non-compact Binary BigNum instances is
// [2^63, 2^64), we expect an ExpRange of (63, 64)
assert_eq!(min_exp, 63);
assert_eq!(max_exp, 64);
Tuple Fields§
§0: u32
§1: u32
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExpRange
impl RefUnwindSafe for ExpRange
impl Send for ExpRange
impl Sync for ExpRange
impl Unpin for ExpRange
impl UnwindSafe for ExpRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more