Struct num_integer::ExtendedGcd [−][src]
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: ATrait Implementations
impl<A: Clone> Clone for ExtendedGcd<A>[src]
impl<A: Clone> Clone for ExtendedGcd<A>[src]fn clone(&self) -> ExtendedGcd<A>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<A: PartialEq> PartialEq<ExtendedGcd<A>> for ExtendedGcd<A>[src]
impl<A: PartialEq> PartialEq<ExtendedGcd<A>> for ExtendedGcd<A>[src]fn eq(&self, other: &ExtendedGcd<A>) -> bool[src]
fn ne(&self, other: &ExtendedGcd<A>) -> bool[src]
impl<A: Copy> Copy for ExtendedGcd<A>[src]
impl<A: Eq> Eq for ExtendedGcd<A>[src]
impl<A> StructuralEq for ExtendedGcd<A>[src]
impl<A> StructuralPartialEq for ExtendedGcd<A>[src]
Auto Trait Implementations
impl<A> RefUnwindSafe for ExtendedGcd<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for ExtendedGcd<A> where
A: Send,
A: Send,
impl<A> Sync for ExtendedGcd<A> where
A: Sync,
A: Sync,
impl<A> Unpin for ExtendedGcd<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for ExtendedGcd<A> where
A: UnwindSafe,
A: UnwindSafe,