Struct num_integer::ExtendedGcd [−][src]
pub struct ExtendedGcd<A> {
pub gcd: A,
pub x: A,
pub y: A,
// some fields omitted
}Expand description
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: ATrait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<A> RefUnwindSafe for ExtendedGcd<A> where
A: RefUnwindSafe,
impl<A> Send for ExtendedGcd<A> where
A: Send,
impl<A> Sync for ExtendedGcd<A> where
A: Sync,
impl<A> Unpin for ExtendedGcd<A> where
A: Unpin,
impl<A> UnwindSafe for ExtendedGcd<A> where
A: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more