pub struct LinearDiophantineSolution<T>where
T: Signed,{
x: Linear<T>,
y: Linear<T>,
k_range: (T, T),
}Expand description
Solution of ax + by = c
Fields§
§x: Linear<T>§y: Linear<T>§k_range: (T, T)Implementations§
Source§impl<T> LinearDiophantineSolution<T>where
T: Signed,
impl<T> LinearDiophantineSolution<T>where
T: Signed,
pub fn eval(&self, k: T) -> (T, T)
pub fn with_x_range<R>(self, range: R) -> Selfwhere
R: RangeBoundsExt<T>,
pub fn with_y_range<R>(self, range: R) -> Selfwhere
R: RangeBoundsExt<T>,
pub fn with_x_order(self) -> Self
pub fn with_y_order(self) -> Self
pub fn k_range(&self) -> RangeInclusive<T>
Trait Implementations§
Source§impl<T> Clone for LinearDiophantineSolution<T>
impl<T> Clone for LinearDiophantineSolution<T>
Source§fn clone(&self) -> LinearDiophantineSolution<T>
fn clone(&self) -> LinearDiophantineSolution<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for LinearDiophantineSolution<T>
impl<T> Debug for LinearDiophantineSolution<T>
impl<T> Copy for LinearDiophantineSolution<T>
Auto Trait Implementations§
impl<T> Freeze for LinearDiophantineSolution<T>where
T: Freeze,
impl<T> RefUnwindSafe for LinearDiophantineSolution<T>where
T: RefUnwindSafe,
impl<T> Send for LinearDiophantineSolution<T>where
T: Send,
impl<T> Sync for LinearDiophantineSolution<T>where
T: Sync,
impl<T> Unpin for LinearDiophantineSolution<T>where
T: Unpin,
impl<T> UnwindSafe for LinearDiophantineSolution<T>where
T: UnwindSafe,
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