Struct bigint::uint::U128 [] [src]

#[repr(C)]
pub struct U128(pub [u64; 2]);

Little-endian large integer type

Trait Implementations

impl Copy for U128
[src]

impl Clone for U128
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for U128
[src]

impl PartialEq for U128
[src]

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

This method tests for !=.

impl Hash for U128
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Uint for U128
[src]

Convert from a decimal string.

Conversion to u32

Conversion to u64

Conversion to u32 with overflow checking

Conversion to u64 with overflow checking

Returns

Return the least number of bits needed to represent the number

Return if specific bit is set

Return single byte

Convert to the sequence of bytes with a big endian

Convert to the sequence of bytes with a little endian

Convert to a non-zero-prefixed hex representation (not prefixed by 0x).

Create Uint(10**n)

Returns new instance equalling zero.

Returns new instance equalling one.

Returns the largest value that can be represented by this integer type.

Optimized instructions

Subtract another Uint from this returning result and possible overflow

Multiple this Uint with other returning result and possible overflow

Divide this Uint by other returning result and possible overflow

Returns reminder of division of this Uint by other and possible overflow

Returns negation of this Uint and overflow (always true)

impl Default for U128
[src]

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

impl From<u64> for U128
[src]

Performs the conversion.

impl From<u8> for U128
[src]

Performs the conversion.

impl From<u16> for U128
[src]

Performs the conversion.

impl From<u32> for U128
[src]

Performs the conversion.

impl From<usize> for U128
[src]

Performs the conversion.

impl From<i64> for U128
[src]

Performs the conversion.

impl From<i8> for U128
[src]

Performs the conversion.

impl From<i16> for U128
[src]

Performs the conversion.

impl From<i32> for U128
[src]

Performs the conversion.

impl From<isize> for U128
[src]

Performs the conversion.

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

Performs the conversion.

impl FromStr for U128
[src]

The associated error which can be returned from parsing.

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

impl Add<U128> for U128
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub<U128> for U128
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul<U128> for U128
[src]

The resulting type after applying the * operator

The method for the * operator

impl Div<U128> for U128
[src]

The resulting type after applying the / operator

The method for the / operator

impl Rem<U128> for U128
[src]

The resulting type after applying the % operator

The method for the % operator

impl BitAnd<U128> for U128
[src]

The resulting type after applying the & operator

The method for the & operator

impl BitXor<U128> for U128
[src]

The resulting type after applying the ^ operator

The method for the ^ operator

impl BitOr<U128> for U128
[src]

The resulting type after applying the | operator

The method for the | operator

impl Not for U128
[src]

The resulting type after applying the ! operator

The method for the unary ! operator

impl Shl<usize> for U128
[src]

The resulting type after applying the << operator

The method for the << operator

impl Shr<usize> for U128
[src]

The resulting type after applying the >> operator

The method for the >> operator

impl Ord for U128
[src]

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

impl PartialOrd for U128
[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 Debug for U128
[src]

Formats the value using the given formatter.

impl Display for U128
[src]

Formats the value using the given formatter.

impl LowerHex for U128
[src]

Formats the value using the given formatter.

impl From<&'static str> for U128
[src]

Performs the conversion.

impl From<U256> for U128
[src]

Performs the conversion.

impl From<U512> for U128
[src]

Performs the conversion.

impl HeapSizeOf for U128

Measure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of:: measures, more or less); that space is handled by the implementation of HeapSizeOf for Box below. Read more