Trait domafic::processors::ListenerProcessor [] [src]

pub trait ListenerProcessor<'a, Message> {
    type Acc;
    type Error;
    fn get_processor<T: Listener<Message>>(
    ) -> fn(_: &mut Self::Acc, _: &'a T) -> Result<(), Self::Error>; }

ListenerProcessors are used to iterate over Listenerss which may or may not be the same type. Implementations of this trait resemble traditional fold functions, modifying an accumulator (of type Acc) and returning an error as necessary.

Associated Types

Type of the accumulator updated by get_processor

Type of error returned by failed calls to get_processor

Required Methods

Returns a folding function capable of processing elements of type T: DomNode.

TODO: Example

Implementors