Trait IntAbs

Source
pub trait IntAbs: Int {
    type Output: Int;
}
Expand description

Integer absolute value. Used as Abs<X> or <X as IntAbs>::Output.

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl IntAbs for Term

Source§

impl IntAbs for Undefined

Source§

impl<X: Int> IntAbs for Minus<X>
where Term: IntLteCmp<Minus<X>, Minus<X>, <Minus<X> as IntNeg>::Output>, Minus<X>: IntNeg,

Source§

impl<X: Int> IntAbs for Plus<X>
where Term: IntLteCmp<Plus<X>, Plus<X>, <Plus<X> as IntNeg>::Output>, Plus<X>: IntNeg,

Source§

type Output = <Term as IntLteCmp<Plus<X>, Plus<X>, <Plus<X> as IntNeg>::Output>>::Output

Source§

impl<X: Int> IntAbs for Zero<X>
where Term: IntLteCmp<Zero<X>, Zero<X>, <Zero<X> as IntNeg>::Output>, Zero<X>: IntNeg,

Source§

type Output = <Term as IntLteCmp<Zero<X>, Zero<X>, <Zero<X> as IntNeg>::Output>>::Output