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§
Required Methods§
sourcefn build(config: &Self::Config) -> Result<Self>where
Self: Sized,
fn build(config: &Self::Config) -> Result<Self>where Self: Sized,
Constructs the filter given a configuration.
sourcefn filt(&mut self, act: A) -> (BorderAtariAct, Record)
fn filt(&mut self, act: A) -> (BorderAtariAct, Record)
Converts A into an action of BorderAtariAct.