pub fn with_db(mdb: MemoryDB<H>) -> Self {
		Self {
			data: RwLock::new(InMemoryStorageData {
				roots: HashMap::new(),
				mdb,
			}),
		}
	}
/// Create the storage from given in-memory database.
Create the storage from given in-memory database.
Create the storage from given in - memory database .
pub fn with_db(mdb: MemoryDB<H>) -> Self {
		Self {
			data: RwLock::new(InMemoryStorageData {
				roots: HashMap::new(),
				mdb,
			}),
		}
	}
pub fn with_db ( mdb : MemoryDB < H > ) -> Self { Self { data : RwLock :: new ( InMemoryStorageData { roots : HashMap :: new ( ) , mdb , } ) , } }
Create the storage from given in-memory database.
Create the storage from given in - memory database .
mdb
MemoryDB<H>
mdb
MemoryDB<H>