[−][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> PartialEq<ExtendedGcd<A>> for ExtendedGcd<A> where
A: PartialEq<A>,
[src]
A: PartialEq<A>,
fn eq(&self, other: &ExtendedGcd<A>) -> bool
[src]
fn ne(&self, other: &ExtendedGcd<A>) -> bool
[src]
impl<A> Debug for ExtendedGcd<A> where
A: Debug,
[src]
A: Debug,
impl<A> Copy for ExtendedGcd<A> where
A: Copy,
[src]
A: Copy,
impl<A> Clone for ExtendedGcd<A> where
A: Clone,
[src]
A: Clone,
fn clone(&self) -> ExtendedGcd<A>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A> Eq for ExtendedGcd<A> where
A: Eq,
[src]
A: Eq,
Auto Trait Implementations
impl<A> Send for ExtendedGcd<A> where
A: Send,
A: Send,
impl<A> Unpin for ExtendedGcd<A> where
A: Unpin,
A: Unpin,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,