Function halo2_base::utils::power_of_two
source · [−]pub fn power_of_two<F: BigPrimeField>(n: usize) -> F
Expand description
Returns the BigPrimeField element of 2n.
n
: the desired power of 2.
pub fn power_of_two<F: BigPrimeField>(n: usize) -> F
Returns the BigPrimeField element of 2n.
n
: the desired power of 2.