Struct bigint::Gas [] [src]

pub struct Gas(_);

Methods

impl Gas
[src]

Zero value of Gas,

One value of Gas,

Maximum value of Gas,

Minimum value of Gas,

Bits required to represent this value.

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

Conversion to u32 with overflow checking

Panics

Panics if the number is larger than 232.

Conversion to u64 with overflow checking

Panics

Panics if the number is larger than 264.

Conversion to usize with overflow checking

Panics

Panics if the number is larger than usize::max_value().

Trait Implementations

impl Eq for Gas
[src]

impl PartialEq for Gas
[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 Gas
[src]

Formats the value using the given formatter.

impl Copy for Gas
[src]

impl Clone for Gas
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Gas
[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 Gas
[src]

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

impl FromStr for Gas
[src]

The associated error which can be returned from parsing.

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

impl Encodable for Gas
[src]

Append a value to the stream

Get rlp-encoded bytes for this instance

impl Decodable for Gas
[src]

Decode a value from RLP bytes

impl From<u64> for Gas
[src]

Performs the conversion.

impl Into<u64> for Gas
[src]

Performs the conversion.

impl From<usize> for Gas
[src]

Performs the conversion.

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

Performs the conversion.

impl From<bool> for Gas
[src]

Performs the conversion.

impl From<U256> for Gas
[src]

Performs the conversion.

impl Into<U256> for Gas
[src]

Performs the conversion.

impl From<M256> for Gas
[src]

Performs the conversion.

impl Into<M256> for Gas
[src]

Performs the conversion.

impl Ord for Gas
[src]

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

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more

impl PartialOrd for Gas
[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 Add<Gas> for Gas
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub<Gas> for Gas
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul<Gas> for Gas
[src]

The resulting type after applying the * operator

The method for the * operator

impl Div for Gas
[src]

The resulting type after applying the / operator

The method for the / operator

impl Rem for Gas
[src]

The resulting type after applying the % operator

The method for the % operator

impl LowerHex for Gas
[src]

Formats the value using the given formatter.

impl UpperHex for Gas
[src]

Formats the value using the given formatter.