[−][src]Struct num_integer::ExtendedGcd
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: A
x: A
y: A
Trait Implementations
impl<A: Debug> Debug 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: Eq> Eq for ExtendedGcd<A>
[src]
impl<A: Copy> Copy for ExtendedGcd<A>
[src]
impl<A: Clone> Clone for ExtendedGcd<A>
[src]
fn clone(&self) -> ExtendedGcd<A>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<A> Unpin for ExtendedGcd<A> where
A: Unpin,
A: Unpin,
impl<A> Send for ExtendedGcd<A> where
A: Send,
A: Send,
impl<A> Sync for ExtendedGcd<A> where
A: Sync,
A: Sync,
impl<A> UnwindSafe for ExtendedGcd<A> where
A: UnwindSafe,
A: UnwindSafe,
impl<A> RefUnwindSafe for ExtendedGcd<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,