pub struct Triple<const P: u128>(_, _, _);
Expand description
A Markoff triple modulo P
.
Implementations§
source§impl<const P: u128> Triple<P>
impl<const P: u128> Triple<P>
sourcepub fn new(a: FpNum<P>, b: FpNum<P>, c: FpNum<P>) -> Option<Triple<P>>
pub fn new(a: FpNum<P>, b: FpNum<P>, c: FpNum<P>) -> Option<Triple<P>>
Creates a Markoff triple, but only if a
, b
, and c
are a solution.
sourcepub fn new_unchecked(a: FpNum<P>, b: FpNum<P>, c: FpNum<P>) -> Triple<P>
pub fn new_unchecked(a: FpNum<P>, b: FpNum<P>, c: FpNum<P>) -> Triple<P>
Creates a new Markoff triple, without checking that it is actually a solution.
Trait Implementations§
source§impl<const P: u128> PartialEq<Triple<P>> for Triple<P>
impl<const P: u128> PartialEq<Triple<P>> for Triple<P>
impl<const P: u128> Copy for Triple<P>
impl<const P: u128> Eq for Triple<P>
impl<const P: u128> StructuralEq for Triple<P>
impl<const P: u128> StructuralPartialEq for Triple<P>
Auto Trait Implementations§
impl<const P: u128> RefUnwindSafe for Triple<P>
impl<const P: u128> Send for Triple<P>
impl<const P: u128> Sync for Triple<P>
impl<const P: u128> Unpin for Triple<P>
impl<const P: u128> UnwindSafe for Triple<P>
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