Struct zeropool_bn::arith::U256
source · [−]Expand description
256-bit, stack allocated biginteger for use in prime field arithmetic.
Tuple Fields
0: [u128; 2]
Implementations
Initialize U256 from slice of bytes (big endian)
Multiply self
by other
(mod modulo
) via the Montgomery
multiplication method.
pub fn bits(&self) -> BitIterator<'_>ⓘNotable traits for BitIterator<'a>impl<'a> Iterator for BitIterator<'a> type Item = bool;
pub fn bits(&self) -> BitIterator<'_>ⓘNotable traits for BitIterator<'a>impl<'a> Iterator for BitIterator<'a> type Item = bool;
Notable traits for BitIterator<'a>
impl<'a> Iterator for BitIterator<'a> type Item = bool;
Return an Iterator<Item=bool> over all bits from MSB to LSB.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for U256
impl UnwindSafe for U256
Blanket Implementations
Mutably borrows from an owned value. Read more