Trait snarkvm_wasm::SquareRootField [−][src]
The interface for a field that supports an efficient square-root operation.
Required methods
pub fn legendre(&self) -> LegendreSymbol[src]
Returns the Legendre symbol.
#[must_use]pub fn sqrt(&self) -> Option<Self>[src]
Returns the square root of self, if it exists.
pub fn sqrt_in_place(&mut self) -> Option<&mut Self>[src]
Sets self to be the square root of self, if it exists.
Implementors
impl<'a, P> SquareRootField for Fp2<P> where
P: Fp2Parameters,
<P as Fp2Parameters>::Fp: SquareRootField, [src]
P: Fp2Parameters,
<P as Fp2Parameters>::Fp: SquareRootField,
pub fn legendre(&self) -> LegendreSymbol[src]
pub fn sqrt(&self) -> Option<Fp2<P>>[src]
pub fn sqrt_in_place(&mut self) -> Option<&mut Fp2<P>>[src]
impl<P> SquareRootField for Fp3<P> where
P: Fp3Parameters, [src]
P: Fp3Parameters,
pub fn legendre(&self) -> LegendreSymbol[src]
Returns the Legendre symbol.
pub fn sqrt(&self) -> Option<Fp3<P>>[src]
Returns the square root of self, if it exists.
pub fn sqrt_in_place(&mut self) -> Option<&mut Fp3<P>>[src]
Sets self to be the square root of self, if it exists.
impl<P> SquareRootField for Fp256<P> where
P: Fp256Parameters, [src]
P: Fp256Parameters,
pub fn legendre(&self) -> LegendreSymbol[src]
pub fn sqrt(&self) -> Option<Fp256<P>>[src]
pub fn sqrt_in_place(&mut self) -> Option<&mut Fp256<P>>[src]
impl<P> SquareRootField for Fp320<P> where
P: Fp320Parameters, [src]
P: Fp320Parameters,
pub fn legendre(&self) -> LegendreSymbol[src]
pub fn sqrt(&self) -> Option<Fp320<P>>[src]
pub fn sqrt_in_place(&mut self) -> Option<&mut Fp320<P>>[src]
impl<P> SquareRootField for Fp384<P> where
P: Fp384Parameters, [src]
P: Fp384Parameters,
pub fn legendre(&self) -> LegendreSymbol[src]
pub fn sqrt(&self) -> Option<Fp384<P>>[src]
pub fn sqrt_in_place(&mut self) -> Option<&mut Fp384<P>>[src]
impl<P> SquareRootField for Fp768<P> where
P: Fp768Parameters, [src]
P: Fp768Parameters,
pub fn legendre(&self) -> LegendreSymbol[src]
pub fn sqrt(&self) -> Option<Fp768<P>>[src]
pub fn sqrt_in_place(&mut self) -> Option<&mut Fp768<P>>[src]
impl<P> SquareRootField for Fp832<P> where
P: Fp832Parameters, [src]
P: Fp832Parameters,