1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use super::tick_value::TickValue;
use super::Tick;
/// Type that has tick.
pub trait Tickable {
/// Value.
type Value;
/// Get the tick.
fn tick(&self) -> &Tick;
/// Get the value.
fn value(&self) -> &Self::Value;
/// Convert into a [`TickValue`].
fn into_tick_value(self) -> TickValue<Self::Value>;
}