pub trait Mirrored {
type Event: Event;
// Provided methods
fn insert(&mut self, _chan: &mut EventChannel<Self::Event>, _id: Index) { ... }
fn remove(&mut self, _chan: &mut EventChannel<Self::Event>, _id: Index) { ... }
}Expand description
Components that can be tracked in a MirroredStorage.
Required Associated Types§
Provided Methods§
Sourcefn insert(&mut self, _chan: &mut EventChannel<Self::Event>, _id: Index)
fn insert(&mut self, _chan: &mut EventChannel<Self::Event>, _id: Index)
Called when inserting the component. This method should not be called directly.
Sourcefn remove(&mut self, _chan: &mut EventChannel<Self::Event>, _id: Index)
fn remove(&mut self, _chan: &mut EventChannel<Self::Event>, _id: Index)
Called when removing the component. This method should not be called directly.