Enum common_types::ids::BlockId [−][src]
pub enum BlockId { Hash(H256), Number(BlockNumber), Earliest, Latest, }
Uniquely identifies block.
Variants
Hash(H256)
Block's sha3. Querying by hash is always faster.
Number(BlockNumber)
Block number within canon blockchain.
Earliest
Earliest block (genesis).
Latest
Latest mined block.
Trait Implementations
impl Debug for BlockId
[src]
impl Debug for BlockId
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for BlockId
[src]
impl PartialEq for BlockId
fn eq(&self, other: &BlockId) -> bool
[src]
fn eq(&self, other: &BlockId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &BlockId) -> bool
[src]
fn ne(&self, other: &BlockId) -> bool
This method tests for !=
.
impl Copy for BlockId
[src]
impl Copy for BlockId
impl Clone for BlockId
[src]
impl Clone for BlockId
fn clone(&self) -> BlockId
[src]
fn clone(&self) -> BlockId
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Hash for BlockId
[src]
impl Hash for BlockId
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for BlockId
[src]
impl Eq for BlockId