pub struct ExtendedGcd<T: Unsigned> {
pub g: T,
pub x: T::Signed,
pub y: T::Signed,
}
Expand description
extended_gcd(a,b): ax + by = g = gcd(a,b)
Fields§
§g: T
gcd
x: T::Signed
§y: T::Signed
Auto Trait Implementations§
impl<T> Freeze for ExtendedGcd<T>
impl<T> RefUnwindSafe for ExtendedGcd<T>
impl<T> Send for ExtendedGcd<T>
impl<T> Sync for ExtendedGcd<T>
impl<T> Unpin for ExtendedGcd<T>
impl<T> UnwindSafe for ExtendedGcd<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more