Struct bigint2::U256 [] [src]

#[repr(C)]
pub struct U256(_);

Represents an unsigned 256-bit integer.

Methods

impl U256
[src]

Zero value of U256.

One value of U256.

Maximum value of U256.

Minimum value of U256.

Add two U256 with overflowing. The same as M256::add.

Substract two U256 with underflowing. The same as M256::sub.

Multiply two U256 with overflowing. The same as M256::mul.

Bits needed to represent this value.

Equals floor(log2(*)). This is always an integer.

Trait Implementations

impl Eq for U256
[src]

impl PartialEq for U256
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for U256
[src]

Formats the value using the given formatter.

impl Copy for U256
[src]

impl Clone for U256
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for U256
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Default for U256
[src]

Returns the "default value" for a type. Read more

impl FromStr for U256
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl From<bool> for U256
[src]

Performs the conversion.

impl From<u64> for U256
[src]

Performs the conversion.

impl Into<u64> for U256
[src]

Performs the conversion.

impl From<usize> for U256
[src]

Performs the conversion.

impl Into<usize> for U256
[src]

Performs the conversion.

impl<'a> From<&'a [u8]> for U256
[src]

Performs the conversion.

impl From<[u8; 32]> for U256
[src]

Performs the conversion.

impl Into<[u8; 32]> for U256
[src]

Performs the conversion.

impl Into<[u32; 8]> for U256
[src]

Performs the conversion.

impl From<[u32; 8]> for U256
[src]

Performs the conversion.

impl Ord for U256
[src]

This method returns an Ordering between self and other. Read more

impl PartialOrd for U256
[src]

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl BitAnd<U256> for U256
[src]

The resulting type after applying the & operator

The method for the & operator

impl BitOr<U256> for U256
[src]

The resulting type after applying the | operator

The method for the | operator

impl BitXor<U256> for U256
[src]

The resulting type after applying the ^ operator

The method for the ^ operator

impl Shl<usize> for U256
[src]

The resulting type after applying the << operator

The method for the << operator

impl Shr<usize> for U256
[src]

The resulting type after applying the >> operator

The method for the >> operator

impl Add<U256> for U256
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub<U256> for U256
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul<U256> for U256
[src]

The resulting type after applying the * operator

The method for the * operator

impl Div for U256
[src]

The resulting type after applying the / operator

The method for the / operator

impl Rem for U256
[src]

The resulting type after applying the % operator

The method for the % operator

impl Not for U256
[src]

The resulting type after applying the ! operator

The method for the unary ! operator

impl LowerHex for U256
[src]

Formats the value using the given formatter.

impl UpperHex for U256
[src]

Formats the value using the given formatter.