Struct num_integer::ExtendedGcd [−][src]
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: 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: Copy> Copy for ExtendedGcd<A>
[src]
impl<A: Debug> Debug for ExtendedGcd<A>
[src]
impl<A: Eq> Eq 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> 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,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
pub 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>,