Struct sputnikvm::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 Clone for Gas
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialOrd<Gas> for Gas
[src]

impl Into<M256> for Gas
[src]

Performs the conversion.

impl Into<U256> for Gas
[src]

Performs the conversion.

impl Into<u64> for Gas
[src]

Performs the conversion.

impl LowerHex for Gas
[src]

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

impl Copy for Gas
[src]

impl Ord for Gas
[src]

impl Mul<Gas> for Gas
[src]

The resulting type after applying the * operator

The method for the * operator

impl Debug for Gas
[src]

Formats the value using the given formatter.

impl Sub<Gas> for Gas
[src]

The resulting type after applying the - operator

The method for the - operator

impl Decodable for Gas
[src]

impl Add<Gas> for Gas
[src]

The resulting type after applying the + operator

The method for the + operator

impl Div<Gas> for Gas
[src]

The resulting type after applying the / operator

The method for the / operator

impl Rem<Gas> for Gas
[src]

The resulting type after applying the % operator

The method for the % operator

impl From<usize> for Gas
[src]

Performs the conversion.

impl From<U256> for Gas
[src]

Performs the conversion.

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

Performs the conversion.

impl From<u64> for Gas
[src]

Performs the conversion.

impl From<M256> for Gas
[src]

Performs the conversion.

impl From<bool> for Gas
[src]

Performs the conversion.

impl UpperHex for Gas
[src]

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

impl Hash for Gas
[src]