Struct Int2

Source
pub struct Int2<X: Int, Y: Int>(/* private fields */);

Trait Implementations§

Source§

impl<X: Default + Int, Y: Default + Int> Default for Int2<X, Y>

Source§

fn default() -> Int2<X, Y>

Returns the “default value” for a type. Read more
Source§

impl<A: Int, B: Int> Int2P1 for Int2<A, B>

Source§

impl<A: Int, B: Int> Int2P2 for Int2<A, B>

Source§

impl<N, D: Int, R: Int, Q> IntDivInternal<D, Int2<R, Q>> for Minus<N>
where N: IntDivInternal<D, <Minus<R> as IntAbsMinThreeCmp<<Minus<R> as IntSub<D>>::Output, <Minus<R> as IntAdd<D>>::Output, <Q as IntTriple>::Output, Plus<Q>, Minus<Q>>>::Output> + Int, Minus<R>: IntAbsMinThreeCmp<<Minus<R> as IntSub<D>>::Output, <Minus<R> as IntAdd<D>>::Output, <Q as IntTriple>::Output, Plus<Q>, Minus<Q>> + IntSub<D> + IntAdd<D>, Q: IntTriple + Int,

Source§

type Output = <N as IntDivInternal<D, <Minus<R> as IntAbsMinThreeCmp<<Minus<R> as IntSub<D>>::Output, <Minus<R> as IntAdd<D>>::Output, <Q as IntTriple>::Output, Plus<Q>, Minus<Q>>>::Output>>::Output

Source§

impl<N, D: Int, R: Int, Q> IntDivInternal<D, Int2<R, Q>> for Plus<N>
where N: IntDivInternal<D, <Plus<R> as IntAbsMinThreeCmp<<Plus<R> as IntSub<D>>::Output, <Plus<R> as IntAdd<D>>::Output, <Q as IntTriple>::Output, Plus<Q>, Minus<Q>>>::Output> + Int, Plus<R>: IntAbsMinThreeCmp<<Plus<R> as IntSub<D>>::Output, <Plus<R> as IntAdd<D>>::Output, <Q as IntTriple>::Output, Plus<Q>, Minus<Q>> + IntSub<D> + IntAdd<D>, Q: IntTriple + Int,

Source§

type Output = <N as IntDivInternal<D, <Plus<R> as IntAbsMinThreeCmp<<Plus<R> as IntSub<D>>::Output, <Plus<R> as IntAdd<D>>::Output, <Q as IntTriple>::Output, Plus<Q>, Minus<Q>>>::Output>>::Output

Source§

impl<D: Int, R: Int, Q: Int> IntDivInternal<D, Int2<R, Q>> for Term

Source§

type Output = Int2<R, Q>

Source§

impl<N, D: Int, R, Q> IntDivInternal<D, Int2<R, Q>> for Zero<N>
where N: IntDivInternal<D, <<R as IntTriple>::Output as IntAbsMinThreeCmp<<<R as IntTriple>::Output as IntSub<D>>::Output, <<R as IntTriple>::Output as IntAdd<D>>::Output, <Q as IntTriple>::Output, Plus<Q>, Minus<Q>>>::Output> + Int, <R as IntTriple>::Output: IntAbsMinThreeCmp<<<R as IntTriple>::Output as IntSub<D>>::Output, <<R as IntTriple>::Output as IntAdd<D>>::Output, <Q as IntTriple>::Output, Plus<Q>, Minus<Q>> + IntSub<D> + IntAdd<D>, R: IntTriple + Int, Q: IntTriple + Int,

Source§

type Output = <N as IntDivInternal<D, <<R as IntTriple>::Output as IntAbsMinThreeCmp<<<R as IntTriple>::Output as IntSub<D>>::Output, <<R as IntTriple>::Output as IntAdd<D>>::Output, <Q as IntTriple>::Output, Plus<Q>, Minus<Q>>>::Output>>::Output

Source§

impl<X: Int, Y: Int> IntPair for Int2<X, Y>

Auto Trait Implementations§

§

impl<X, Y> Freeze for Int2<X, Y>

§

impl<X, Y> RefUnwindSafe for Int2<X, Y>

§

impl<X, Y> Send for Int2<X, Y>
where X: Send, Y: Send,

§

impl<X, Y> Sync for Int2<X, Y>
where X: Sync, Y: Sync,

§

impl<X, Y> Unpin for Int2<X, Y>
where X: Unpin, Y: Unpin,

§

impl<X, Y> UnwindSafe for Int2<X, Y>
where X: UnwindSafe, Y: UnwindSafe,

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.
Source§

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