pub fn limbs_to_nat<F: PrimeField, B: Borrow<F>, I: DoubleEndedIterator<Item = B>>(
    limbs: I,
    limb_width: usize,
) -> Integer {
    limbs.rev().fold(Integer::from(0), |mut acc, limb| {
        acc <<= limb_width as u32;
        acc += f_to_nat(limb.borrow());
        acc
    })
}
/// Compute the natural number represented by an array of limbs.
/// The limbs are assumed to be based the `limb_width` power of 2.
Compute the natural number represented by an array of limbs.
The limbs are assumed to be based the `limb_width` power of 2.
Compute the natural number represented by an array of limbs . The limbs are assumed to be based the ` limb_width ` power of 2 .
pub fn limbs_to_nat<F: PrimeField, B: Borrow<F>, I: DoubleEndedIterator<Item = B>>(
    limbs: I,
    limb_width: usize,
) -> Integer {
    limbs.rev().fold(Integer::from(0), |mut acc, limb| {
        acc <<= limb_width as u32;
        acc += f_to_nat(limb.borrow());
        acc
    })
}
pub fn limbs_to_nat < F : PrimeField , B : Borrow < F > , I : DoubleEndedIterator < Item = B > > ( limbs : I , limb_width : usize , ) -> Integer { limbs . rev ( ) . fold ( Integer :: from ( 0 ) , | mut acc , limb | { acc <<= limb_width as u32 ; acc += f_to_nat ( limb . borrow ( ) ) ; acc } ) }
Compute the natural number represented by an array of limbs.
Compute the natural number represented by an array of limbs .
limbs
I
limb_width
usize
limbs
I
limb_width
usize