pub trait BorderAtariActFilter<A: Act> {
    type Config: Clone + Default;

    // Required methods
    fn build(config: &Self::Config) -> Result<Self>
       where Self: Sized;
    fn filt(&mut self, act: A) -> (BorderAtariAct, Record);

    // Provided method
    fn reset(&mut self, _is_done: &Option<&Vec<i8>>) { ... }
}
Expand description

Converts A to BorderAtariAct.

Required Associated Types§

source

type Config: Clone + Default

Configuration of the filter.

Required Methods§

source

fn build(config: &Self::Config) -> Result<Self>where Self: Sized,

Constructs the filter given a configuration.

source

fn filt(&mut self, act: A) -> (BorderAtariAct, Record)

Converts A into an action of BorderAtariAct.

Provided Methods§

source

fn reset(&mut self, _is_done: &Option<&Vec<i8>>)

Resets the filter. Does nothing in the default implementation.

Implementors§

source§

impl<A> BorderAtariActFilter<A> for BorderAtariActRawFilter<A>where A: Act + Into<BorderAtariAct>,

§

type Config = BorderAtariActRawFilterConfig