Struct snarkvm_utilities::biginteger::biginteger::BigInteger64 [−][src]
Implementations
Trait Implementations
impl BigInteger for BigInteger64
[src]
impl BigInteger for BigInteger64
[src]fn from_bits_be(bits: Vec<bool>) -> Self
[src]
fn from_bits_be(bits: Vec<bool>) -> Self
[src]Constructs a BigInteger
by parsing a vector of bits in big endian format
and transforms it into a vector of little endian u64 elements.
fn add_nocarry(&mut self, other: &Self) -> bool
[src]
fn add_nocarry(&mut self, other: &Self) -> bool
[src]Add another representation to this one, returning the carry bit.
fn sub_noborrow(&mut self, other: &Self) -> bool
[src]
fn sub_noborrow(&mut self, other: &Self) -> bool
[src]Subtract another representation from this one, returning the borrow bit.
fn mul2(&mut self)
[src]
fn mul2(&mut self)
[src]Performs a leftwise bitshift of this number, effectively multiplying it by 2. Overflow is ignored. Read more
fn div2(&mut self)
[src]
fn div2(&mut self)
[src]Performs a rightwise bitshift of this number, effectively dividing it by 2. Read more
fn num_bits(&self) -> u32
[src]
fn num_bits(&self) -> u32
[src]Compute the number of bits needed to encode this number. Always a multiple of 64. Read more
fn to_bits_be(&self) -> Vec<bool>ⓘ
[src]
fn to_bits_be(&self) -> Vec<bool>ⓘ
[src]Returns the bit representation of the big integer in a big endian boolean array, without leading zeros. Read more
fn to_bits_le(&self) -> Vec<bool>ⓘ
[src]
fn to_bits_le(&self) -> Vec<bool>ⓘ
[src]Returns the bit representation of the big integer in a little endian boolean array, with trailing zeroes. Read more
impl Clone for BigInteger64
[src]
impl Clone for BigInteger64
[src]fn clone(&self) -> BigInteger64
[src]
fn clone(&self) -> BigInteger64
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for BigInteger64
[src]
impl Debug for BigInteger64
[src]impl Default for BigInteger64
[src]
impl Default for BigInteger64
[src]fn default() -> BigInteger64
[src]
fn default() -> BigInteger64
[src]Returns the “default value” for a type. Read more
impl Display for BigInteger64
[src]
impl Display for BigInteger64
[src]impl From<u64> for BigInteger64
[src]
impl From<u64> for BigInteger64
[src]fn from(val: u64) -> BigInteger64
[src]
fn from(val: u64) -> BigInteger64
[src]Performs the conversion.
impl FromBytes for BigInteger64
[src]
impl FromBytes for BigInteger64
[src]impl Hash for BigInteger64
[src]
impl Hash for BigInteger64
[src]impl Ord for BigInteger64
[src]
impl Ord for BigInteger64
[src]impl PartialEq<BigInteger64> for BigInteger64
[src]
impl PartialEq<BigInteger64> for BigInteger64
[src]fn eq(&self, other: &BigInteger64) -> bool
[src]
fn eq(&self, other: &BigInteger64) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &BigInteger64) -> bool
[src]
fn ne(&self, other: &BigInteger64) -> bool
[src]This method tests for !=
.
impl PartialOrd<BigInteger64> for BigInteger64
[src]
impl PartialOrd<BigInteger64> for BigInteger64
[src]fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl ToBytes for BigInteger64
[src]
impl ToBytes for BigInteger64
[src]impl Copy for BigInteger64
[src]
impl Eq for BigInteger64
[src]
impl StructuralEq for BigInteger64
[src]
impl StructuralPartialEq for BigInteger64
[src]
Auto Trait Implementations
impl RefUnwindSafe for BigInteger64
impl Send for BigInteger64
impl Sync for BigInteger64
impl Unpin for BigInteger64
impl UnwindSafe for BigInteger64
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> UniformRand for T where
Standard: Distribution<T>,
[src]
impl<T> UniformRand for T where
Standard: Distribution<T>,
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,