pub enum RelDec {
Greater(DecCnt),
Equal(usize),
Lesser(DecCnt),
}Expand description
Decimal relation enumeration.
Expresses relation of numbers in decimal places count.
use big_num_math::{rel_dec, PlacesRow, RelDec, DecCnt};
let num_1 = PlacesRow::new_from_usize(333);
let num_2 = PlacesRow::new_from_usize(777);
let num_3 = PlacesRow::new_from_usize(1);
assert_eq!(RelDec::Equal(3), rel_dec(&num_1, &num_2));
let cnt_1_cnt_2_dif: DecCnt = (1,3,2);
assert_eq!(RelDec::Lesser(cnt_1_cnt_2_dif), rel_dec(&num_3, &num_1));Variants§
Greater(DecCnt)
Count greater than comparand has. Holds information about respective counts.
Equal(usize)
Count equal to comparand count. Holds count information.
Lesser(DecCnt)
Count lesser than comparand has. Holds information about respective counts.
Trait Implementations§
impl StructuralPartialEq for RelDec
Auto Trait Implementations§
impl Freeze for RelDec
impl RefUnwindSafe for RelDec
impl Send for RelDec
impl Sync for RelDec
impl Unpin for RelDec
impl UnsafeUnpin for RelDec
impl UnwindSafe for RelDec
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