num_bigint_dig::traits

Trait ExtendedGcd

Source
pub trait ExtendedGcd<R: Sized>: Sized {
    // Required method
    fn extended_gcd(self, other: R) -> (BigInt, BigInt, BigInt);
}
Expand description

Generic trait to implement extended GCD. Calculates the extended eucledian algorithm. See https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm for details. The returned values are

  • greatest common divisor (1)
  • Bezout coefficients (2)

Required Methods§

Source

fn extended_gcd(self, other: R) -> (BigInt, BigInt, BigInt)

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<'a> ExtendedGcd<&'a BigInt> for BigInt

Source§

impl<'a> ExtendedGcd<&'a BigInt> for BigUint

Source§

impl<'a> ExtendedGcd<&'a BigUint> for BigInt

Source§

impl<'a> ExtendedGcd<&'a BigUint> for BigUint

Source§

impl<'a, 'b> ExtendedGcd<&'b BigInt> for &'a BigInt

Source§

impl<'a, 'b> ExtendedGcd<&'b BigInt> for &'a BigUint

Source§

impl<'a, 'b> ExtendedGcd<&'b BigUint> for &'a BigInt

Source§

impl<'a, 'b> ExtendedGcd<&'b BigUint> for &'a BigUint