pub trait Filter {
type Config;
// Required methods
fn update(&mut self, x: i32, k: &Self::Config) -> i32;
fn get(&self) -> i32;
fn set(&mut self, x: i32);
}
Expand description
Single inpout single output i32 filter
pub trait Filter {
type Config;
// Required methods
fn update(&mut self, x: i32, k: &Self::Config) -> i32;
fn get(&self) -> i32;
fn set(&mut self, x: i32);
}
Single inpout single output i32 filter