[][src]Trait amethyst_ui::EventReceiver

pub trait EventReceiver<T> {
    fn receive_one(&mut self, value: &T);
fn receive(&mut self, values: &[T]); }

Describes anything that can receive events one by one or in batches. This lets whoever wants to receive triggered events decide on how they want to receive them, instead of forcing them to construct certain data structures such as a Vec.

Required methods

fn receive_one(&mut self, value: &T)

Receive a single event

fn receive(&mut self, values: &[T])

Receive an iterator over several events

Loading content...

Implementations on Foreign Types

impl<T> EventReceiver<T> for EventChannel<T> where
    T: Clone + Event
[src]

Loading content...

Implementors

Loading content...