revm_context_interface

Trait DatabaseGetter

Source
pub trait DatabaseGetter {
    type Database: Database;

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

Required Associated Types§

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

type Database = <T as DatabaseGetter>::Database

Source§

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

Implementors§