pub trait CandleComponent<T> {
// Required methods
fn value(&self) -> T;
fn reset(&mut self);
}
Expand description
Each component of a Candle must fullfill this trait
pub trait CandleComponent<T> {
// Required methods
fn value(&self) -> T;
fn reset(&mut self);
}
Each component of a Candle must fullfill this trait