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.
EarliestEarliest block (genesis).
LatestLatest mined block.
Trait Implementations
impl Debug for BlockId[src]
impl Debug for BlockIdfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for BlockId[src]
impl PartialEq for BlockIdfn eq(&self, other: &BlockId) -> bool[src]
fn eq(&self, other: &BlockId) -> boolThis 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) -> boolThis method tests for !=.
impl Copy for BlockId[src]
impl Copy for BlockIdimpl Clone for BlockId[src]
impl Clone for BlockIdfn clone(&self) -> BlockId[src]
fn clone(&self) -> BlockIdReturns 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 BlockIdfn 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