[][src]Trait sylasteven::Handler

pub trait Handler {
    type Event;
    fn handle(&mut self, event: Self::Event);
}

A trait for types, that can handle specific event types.

Associated Types

type Event

The handled event type.

Loading content...

Required methods

fn handle(&mut self, event: Self::Event)

The method to handle the event.

Loading content...

Implementations on Foreign Types

impl<E> Handler for Vec<E>[src]

type Event = E

Loading content...

Implementors

Loading content...