#[repr(i8)]pub enum JacobiSymbol {
Zero = 0,
One = 1,
MinusOne = -1,
}Expand description
Possible return values for Jacobi symbol calculations.
Variants§
Zero = 0
The two arguments are not coprime, they have a common divisor apart from 1.
One = 1
The two arguments are coprime. If the lower argument is prime, then the upper argument is quadratic residue modulo the lower argument. Otherwise, the upper argument is known to be quadratic nonresidue for an even number of prime factors of the lower argument.
MinusOne = -1
The two terms are coprime, and the upper argument is a quadratic nonresidue modulo the lower argument.
Implementations§
Source§impl JacobiSymbol
impl JacobiSymbol
Trait Implementations§
Source§impl Clone for JacobiSymbol
impl Clone for JacobiSymbol
Source§fn clone(&self) -> JacobiSymbol
fn clone(&self) -> JacobiSymbol
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 ConstantTimeEq for JacobiSymbol
Available on crate feature subtle only.
impl ConstantTimeEq for JacobiSymbol
Available on crate feature
subtle only.Source§impl CtEq for JacobiSymbol
impl CtEq for JacobiSymbol
Source§impl Debug for JacobiSymbol
impl Debug for JacobiSymbol
Source§impl From<JacobiSymbol> for i8
impl From<JacobiSymbol> for i8
Source§fn from(symbol: JacobiSymbol) -> i8
fn from(symbol: JacobiSymbol) -> i8
Converts to this type from the input type.
Source§impl Neg for JacobiSymbol
impl Neg for JacobiSymbol
Source§impl PartialEq for JacobiSymbol
impl PartialEq for JacobiSymbol
impl Copy for JacobiSymbol
impl Eq for JacobiSymbol
Auto Trait Implementations§
impl Freeze for JacobiSymbol
impl RefUnwindSafe for JacobiSymbol
impl Send for JacobiSymbol
impl Sync for JacobiSymbol
impl Unpin for JacobiSymbol
impl UnsafeUnpin for JacobiSymbol
impl UnwindSafe for JacobiSymbol
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