revm_context_interface

Trait DatabaseGetter

pub trait DatabaseGetter {
    type Database: Database;

    // Required methods
    fn db(&mut self) -> &mut Self::Database;
    fn db_ref(&self) -> &Self::Database;
}

Required Associated Types§

Required Methods§

fn db(&mut self) -> &mut Self::Database

fn db_ref(&self) -> &Self::Database

Implementations on Foreign Types§

§

impl<'a, T> DatabaseGetter for &'a mut T
where T: 'a + DatabaseGetter + ?Sized,

§

type Database = <T as DatabaseGetter>::Database

§

fn db(&mut self) -> &mut <&'a mut T as DatabaseGetter>::Database

§

fn db_ref(&self) -> &<&'a mut T as DatabaseGetter>::Database

§

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

§

type Database = <T as DatabaseGetter>::Database

§

fn db(&mut self) -> &mut <Box<T> as DatabaseGetter>::Database

§

fn db_ref(&self) -> &<Box<T> as DatabaseGetter>::Database

Implementors§