Trait revm::db::BlockHash

pub trait BlockHash {
    type Error;

    // Required method
    fn block_hash(&mut self, number: Uint<256, 4>) -> Result<B256, Self::Error>;
}

Required Associated Types§

type Error

Required Methods§

fn block_hash(&mut self, number: Uint<256, 4>) -> Result<B256, Self::Error>

Get block hash by block number

Implementations on Foreign Types§

§

impl<T> BlockHash for Arc<T>where T: BlockHashRef,

§

type Error = <T as BlockHashRef>::Error

§

fn block_hash( &mut self, number: Uint<256, 4> ) -> Result<B256, <Arc<T> as BlockHash>::Error>

§

impl<T> BlockHash for &Twhere T: BlockHashRef,

§

type Error = <T as BlockHashRef>::Error

§

fn block_hash( &mut self, number: Uint<256, 4> ) -> Result<B256, <&T as BlockHash>::Error>

§

impl<T> BlockHash for Box<T, Global>where T: BlockHash + ?Sized,

§

type Error = <T as BlockHash>::Error

§

fn block_hash( &mut self, number: Uint<256, 4> ) -> Result<B256, <Box<T, Global> as BlockHash>::Error>

§

impl<'a, T> BlockHash for &'a mut Twhere T: 'a + BlockHash + ?Sized,

§

type Error = <T as BlockHash>::Error

§

fn block_hash( &mut self, number: Uint<256, 4> ) -> Result<B256, <&'a mut T as BlockHash>::Error>

Implementors§