Enum ethcore_light::request::HashOrNumber [] [src]

pub enum HashOrNumber {
    Hash(H256),
    Number(u64),
}

Either a hash or a number.

Variants

Block hash variant.

Block number variant.

Trait Implementations

impl Debug for HashOrNumber
[src]

Formats the value using the given formatter.

impl Clone for HashOrNumber
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for HashOrNumber
[src]

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

This method tests for !=.

impl Eq for HashOrNumber
[src]

impl From<H256> for HashOrNumber
[src]

Performs the conversion.

impl From<u64> for HashOrNumber
[src]

Performs the conversion.