BorderAtariObsFilter

Trait BorderAtariObsFilter 

Source
pub trait BorderAtariObsFilter<O: Obs> {
    type Config: Clone + Default;

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

    // Provided method
    fn reset(&mut self, obs: BorderAtariObs) -> O { ... }
}
Expand description

Converts BorderAtariObs to observation of type O with an arbitrary processing.

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, obs: BorderAtariObs) -> (O, Record)

Converts the original observation into O.

Provided Methods§

Source

fn reset(&mut self, obs: BorderAtariObs) -> O

Resets the filter.

Implementors§

Source§

impl<O> BorderAtariObsFilter<O> for BorderAtariObsRawFilter<O>
where O: Obs + From<BorderAtariObs>,

Source§

type Config = BorderAtariObsRawFilterConfig