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

Performs the conversion.

impl Into<U256> for Gas
[src]

Performs the conversion.

impl Default for Gas
[src]

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

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

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

impl Sub<Gas> for Gas
[src]

The resulting type after applying the - operator

The method for the - operator

impl LowerHex for Gas
[src]

impl UpperHex for Gas
[src]

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

Performs the conversion.

impl From<u64> for Gas
[src]

Performs the conversion.

impl<'a> From<&'a [u8]> 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 From<U256> for Gas
[src]

Performs the conversion.

impl Eq for Gas
[src]

impl Hash for Gas
[src]

impl Encodable for Gas
[src]

impl Debug for Gas
[src]

Formats the value using the given formatter.