use std::fmt;
#[derive(Clone)]
pub struct Store;
impl Store {
pub fn new() -> Self {
Self
}
pub fn same(_a: &Self, _b: &Self) -> bool {
true
}
}
impl PartialEq for Store {
fn eq(&self, other: &Self) -> bool {
Self::same(self, other)
}
}
unsafe impl Send for Store {}
unsafe impl Sync for Store {}
impl Default for Store {
fn default() -> Self {
Self::new()
}
}
impl fmt::Debug for Store {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("Store").finish()
}
}
pub trait StoreObject {
fn comes_from_same_store(&self, _store: &Store) -> bool {
true
}
}