pub trait StoreField: Send + 'static {
type Snapshot: Send + 'static;
// Required methods
fn bind(&mut self, scene: SceneId, owner: Owner);
fn snapshot(&self) -> Self::Snapshot;
fn restore(&mut self, from: &Self::Snapshot, scene: SceneId, owner: Owner);
// Provided methods
fn boundary(&mut self, _owner: Owner) { ... }
fn release(&mut self, _entity: Entity, _owner: Owner) { ... }
}Expand description
A storage-field contract; only Stores implementations call its lifetime hooks.