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