Skip to main content

SplitByDifference

Enum SplitByDifference 

Source
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

§minuend: Ranged<{ _ }, AMAX>

Minuend (first parameter) with narrower bounds

§subtrahend: Ranged<BMIN, { _ }>

Subtrahend (second parameter) with narrower bounds

§difference: Ranged<1, { _ }>

Subtraction result

§

Equal

Minuend and subtrahend are equal

Fields

§minuend: Ranged<{ _ }, { _ }>

Minuend (first parameter) with narrower bounds

§subtrahend: Ranged<{ _ }, { _ }>

Subtrahend (second parameter) with narrower bounds

§difference: Ranged<0, 0>

Subtraction result

§

Less

Minuend is less than subtrahend

Fields

§minuend: Ranged<AMIN, { _ }>

Minuend (first parameter) with narrower bounds

§subtrahend: Ranged<{ _ }, BMAX>

Subtrahend (second parameter) with narrower bounds

§difference: Ranged<{ _ }, -1>

Subtraction result

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.