pub enum SplitByDifference<const AMIN: i128, const AMAX: i128, const BMIN: i128, const BMAX: i128>where
Assert<{ _ }>: IsAllowed,
Assert<{ _ }>: IsAllowed,
Assert<{ _ }>: IsAllowed,
Assert<{ _ }>: IsAllowed,
Assert<{ _ }>: IsAllowed,
Assert<{ _ }>: IsAllowed,
Assert<{ _ }>: IsAllowed,{
Greater {
minuend: Ranged<{ _ }, AMAX>,
subtrahend: Ranged<BMIN, { _ }>,
difference: Ranged<1, { _ }>,
},
Equal {
minuend: Ranged<{ _ }, { _ }>,
subtrahend: Ranged<{ _ }, { _ }>,
difference: Ranged<0, 0>,
},
Less {
minuend: Ranged<AMIN, { _ }>,
subtrahend: Ranged<{ _ }, BMAX>,
difference: Ranged<{ _ }, -1>,
},
}Expand description
Case-analyzed difference (subtraction result) of two values
Is created by Ranged::split_subtract method call.
Variants§
Greater
Minuend is greater than subtrahend
Fields
Equal
Minuend and subtrahend are equal
Fields
Less
Minuend is less than subtrahend
Auto Trait Implementations§
impl<const AMIN: i128, const AMAX: i128, const BMIN: i128, const BMAX: i128> Freeze for SplitByDifference<AMIN, AMAX, BMIN, BMAX>
impl<const AMIN: i128, const AMAX: i128, const BMIN: i128, const BMAX: i128> RefUnwindSafe for SplitByDifference<AMIN, AMAX, BMIN, BMAX>
impl<const AMIN: i128, const AMAX: i128, const BMIN: i128, const BMAX: i128> Send for SplitByDifference<AMIN, AMAX, BMIN, BMAX>
impl<const AMIN: i128, const AMAX: i128, const BMIN: i128, const BMAX: i128> Sync for SplitByDifference<AMIN, AMAX, BMIN, BMAX>
impl<const AMIN: i128, const AMAX: i128, const BMIN: i128, const BMAX: i128> Unpin for SplitByDifference<AMIN, AMAX, BMIN, BMAX>
impl<const AMIN: i128, const AMAX: i128, const BMIN: i128, const BMAX: i128> UnwindSafe for SplitByDifference<AMIN, AMAX, BMIN, BMAX>
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