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§
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, obs: BorderAtariObs) -> (O, Record)
fn filt(&mut self, obs: BorderAtariObs) -> (O, Record)
Converts the original observation into O.
Provided Methods§
Sourcefn reset(&mut self, obs: BorderAtariObs) -> O
fn reset(&mut self, obs: BorderAtariObs) -> O
Resets the filter.