Struct bigint::Gas [] [src]

pub struct Gas(_);

Methods

impl Gas
[src]

[src]

Zero value of Gas,

[src]

One value of Gas,

[src]

Maximum value of Gas,

[src]

Minimum value of Gas,

[src]

Bits required to represent this value.

[src]

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

[src]

Conversion to u32 with overflow checking

Panics

Panics if the number is larger than 232.

[src]

Conversion to u64 with overflow checking

Panics

Panics if the number is larger than 264.

[src]

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]

[src]

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

[src]

This method tests for !=.

impl Debug for Gas
[src]

[src]

Formats the value using the given formatter.

impl Copy for Gas
[src]

impl Clone for Gas
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for Gas
[src]

[src]

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

1.3.0
[src]

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

impl Default for Gas
[src]

[src]

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

impl FromStr for Gas
[src]

The associated error which can be returned from parsing.

[src]

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

impl Encodable for Gas
[src]

[src]

Append a value to the stream

[src]

Get rlp-encoded bytes for this instance

impl Decodable for Gas
[src]

[src]

Decode a value from RLP bytes

impl From<u64> for Gas
[src]

[src]

Performs the conversion.

impl Into<u64> for Gas
[src]

[src]

Performs the conversion.

impl From<usize> for Gas
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl From<bool> for Gas
[src]

[src]

Performs the conversion.

impl From<U256> for Gas
[src]

[src]

Performs the conversion.

impl Into<U256> for Gas
[src]

[src]

Performs the conversion.

impl From<M256> for Gas
[src]

[src]

Performs the conversion.

impl Into<M256> for Gas
[src]

[src]

Performs the conversion.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<Gas> for Gas
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Mul<Gas> for Gas
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div for Gas
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Rem for Gas
[src]

The resulting type after applying the % operator.

[src]

Performs the % operation.

impl LowerHex for Gas
[src]

[src]

Formats the value using the given formatter.

impl UpperHex for Gas
[src]

[src]

Formats the value using the given formatter.