use super::store::*;
use std::sync::*;
pub type StoreRef<'own> = Arc<Box<&'own dyn Store>>;
pub trait ToStoreRef<'own> {
fn to_ref(&'own self) -> StoreRef<'own>;
}
impl<'own, StoreT> ToStoreRef<'own> for StoreT
where
StoreT: Store,
{
fn to_ref(&'own self) -> StoreRef<'own> {
StoreRef::new(Box::new(self))
}
}