BorderAtariActFilter

Trait BorderAtariActFilter 

Source
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 action of type 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>,

Source§

type Config = BorderAtariActRawFilterConfig