pub trait Temporal<VT>: Identifiable {
// Required methods
fn time_scale(&self) -> TimeScale;
fn time_unit(&self) -> VT;
}Expand description
Represents entities that have intrinsic temporal properties.
This trait provides access to both the scale (e.g. seconds, minutes) and unit value (e.g. timestamp, frame number) associated with a temporal point.
Use this for any node, edge, or context that evolves over time or contributes to time-dependent reasoning.
§Notes
The numeric type V must support ordering and arithmetic if used for inference.
Required Methods§
Sourcefn time_scale(&self) -> TimeScale
fn time_scale(&self) -> TimeScale
Returns the unit scale of time (e.g. TimeScale::Milliseconds).