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

Required Methods§

source

fn value(&self) -> T

An associated type which is the output type of the value() method The current value of the component

source

fn reset(&mut self)

Resets the component state to its default

Implementors§