pub struct ExtendedGcd<T: Signed> {
pub g: T::Unsigned,
pub x: T,
pub y: T,
}
Expand description
extended_gcd(a,b): ax + by = g = gcd(a,b)
Fields§
§g: T::Unsigned
gcd
x: T
§y: T
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