[][src]Struct num_integer::ExtendedGcd

pub struct ExtendedGcd<A> {
    pub gcd: A,
    pub x: A,
    pub y: A,
    // some fields omitted
}

Greatest common divisor and Bézout coefficients

let e = isize::extended_gcd(a, b);
assert_eq!(e.gcd, e.x*a + e.y*b);

Fields

gcd: Ax: Ay: A

Trait Implementations

impl<A: Debug> Debug for ExtendedGcd<A>[src]

impl<A: PartialEq> PartialEq<ExtendedGcd<A>> for ExtendedGcd<A>[src]

impl<A: Eq> Eq for ExtendedGcd<A>[src]

impl<A: Copy> Copy for ExtendedGcd<A>[src]

impl<A: Clone> Clone for ExtendedGcd<A>[src]

Auto Trait Implementations

impl<A> Unpin for ExtendedGcd<A> where
    A: Unpin

impl<A> Send for ExtendedGcd<A> where
    A: Send

impl<A> Sync for ExtendedGcd<A> where
    A: Sync

impl<A> UnwindSafe for ExtendedGcd<A> where
    A: UnwindSafe

impl<A> RefUnwindSafe for ExtendedGcd<A> where
    A: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.