pub struct I128;Trait Implementations§
Source§impl Congruence<i128> for I128
impl Congruence<i128> for I128
Source§fn congruence(a: T, b: T, n: T) -> Result<T, String>
fn congruence(a: T, b: T, n: T) -> Result<T, String>
Returns congruence result
8x = 2 (mod 17)
ax = b (mod n)
Source§impl Euc<i128> for I128
impl Euc<i128> for I128
Source§fn euc_from_vec(d: Vec<T>) -> Result<T, String>
fn euc_from_vec(d: Vec<T>) -> Result<T, String>
Returns normal euclidean algorithm result from 2 or more numbers.
Source§fn euc_recursive(d1: T, d2: T) -> T
fn euc_recursive(d1: T, d2: T) -> T
Returns normal euclidean algorithm result but uses recursion insted of loop.
Auto Trait Implementations§
impl Freeze for I128
impl RefUnwindSafe for I128
impl Send for I128
impl Sync for I128
impl Unpin for I128
impl UnwindSafe for I128
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