pub fn new(state: S, shared_cache: SharedCache<B, H>, parent_hash: Option<B::Hash>) -> CachingState<H, S, B> {
		CachingState {
			state,
			shared_cache,
			local_cache: RwLock::new(LocalCache {
				storage: Default::default(),
				hashes: Default::default(),
			}),
			parent_hash: parent_hash,
		}
	}
/// Create a new instance wrapping generic State and shared cache.
Create a new instance wrapping generic State and shared cache.
Create a new instance wrapping generic State and shared cache .
pub fn new(state: S, shared_cache: SharedCache<B, H>, parent_hash: Option<B::Hash>) -> CachingState<H, S, B> {
		CachingState {
			state,
			shared_cache,
			local_cache: RwLock::new(LocalCache {
				storage: Default::default(),
				hashes: Default::default(),
			}),
			parent_hash: parent_hash,
		}
	}
pub fn new ( state : S , shared_cache : SharedCache < B , H > , parent_hash : Option < B :: Hash > ) -> CachingState < H , S , B > { CachingState { state , shared_cache , local_cache : RwLock :: new ( LocalCache { storage : Default :: default ( ) , hashes : Default :: default ( ) , } ) , parent_hash : parent_hash , } }
Create a new instance wrapping generic State and shared cache.
Create a new instance wrapping generic State and shared cache .
state
S
shared_cache
SharedCache<B, H>
parent_hash
Option<B::Hash>
state
S
shared_cache
SharedCache<B, H>
parent_hash
Option<B::Hash>