Struct bitcoin::util::uint::Uint256 [] [src]

#[repr(C)]
pub struct Uint256(pub [u64; 4]);

Little-endian large integer type

Methods

impl Uint256
[src]

[src]

Converts the object to a raw pointer

[src]

Converts the object to a mutable raw pointer

[src]

Returns the length of the object as an array

[src]

Returns whether the object, as an array, is empty. Always false.

impl Uint256
[src]

[src]

Conversion to u32

[src]

Return the least number of bits needed to represent the number

[src]

Multiplication by u32

impl Uint256
[src]

[src]

Increment by 1

[src]

Decay to a uint128

Trait Implementations

impl<'a> From<&'a [u64]> for Uint256
[src]

[src]

Performs the conversion.

impl Index<usize> for Uint256
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl Index<Range<usize>> for Uint256
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl Index<RangeTo<usize>> for Uint256
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl Index<RangeFrom<usize>> for Uint256
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl Index<RangeFull> for Uint256
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl PartialEq for Uint256
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for Uint256
[src]

impl PartialOrd for Uint256
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

impl Ord for Uint256
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Clone for Uint256
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Uint256
[src]

impl Hash for Uint256
[src]

[src]

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

[src]

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

impl Rand for Uint256
[src]

[src]

Generates a random instance of this type using the specified source of randomness. Read more

impl FromPrimitive for Uint256
[src]

[src]

Convert an u64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an i64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an isize to return an optional value of this type. If the value cannot be represented by this value, the None is returned. Read more

[src]

Convert an i8 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an i16 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an i32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert a usize to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an u8 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an u16 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an u32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert a f32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert a f64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

impl Zero for Uint256
[src]

[src]

Returns the additive identity element of Self, 0. Read more

[src]

Returns true if self is equal to the additive identity.

impl One for Uint256
[src]

[src]

Returns the multiplicative identity element of Self, 1. Read more

impl Add<Uint256> for Uint256
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<Uint256> for Uint256
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Mul<Uint256> for Uint256
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div<Uint256> for Uint256
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl BitArray for Uint256
[src]

[src]

Is bit set?

[src]

Returns an array which is just the bits from start to end

[src]

Bitwise and with n ones

[src]

Trailing zeros

impl BitAnd<Uint256> for Uint256
[src]

The resulting type after applying the & operator.

[src]

Performs the & operation.

impl BitXor<Uint256> for Uint256
[src]

The resulting type after applying the ^ operator.

[src]

Performs the ^ operation.

impl BitOr<Uint256> for Uint256
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl Not for Uint256
[src]

The resulting type after applying the ! operator.

[src]

Performs the unary ! operation.

impl Shl<usize> for Uint256
[src]

The resulting type after applying the << operator.

[src]

Performs the << operation.

impl Shr<usize> for Uint256
[src]

The resulting type after applying the >> operator.

[src]

Performs the >> operation.

impl Debug for Uint256
[src]

[src]

Formats the value using the given formatter.

impl<S: SimpleEncoder> ConsensusEncodable<S> for Uint256
[src]

[src]

Encode an object with a well-defined format

impl<D: SimpleDecoder> ConsensusDecodable<D> for Uint256
[src]

[src]

Decode an object with a well-defined format