Trait Mirrored

Source
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§

Source

type Event: Event

The event type for reporting changes to this component.

Provided Methods§

Source

fn insert(&mut self, _chan: &mut EventChannel<Self::Event>, _id: Index)

Called when inserting the component. This method should not be called directly.

Source

fn remove(&mut self, _chan: &mut EventChannel<Self::Event>, _id: Index)

Called when removing the component. This method should not be called directly.

Implementors§