Skip to main content

Temporal

Trait Temporal 

Source
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§

Source

fn time_scale(&self) -> TimeScale

Returns the unit scale of time (e.g. TimeScale::Milliseconds).

Source

fn time_unit(&self) -> VT

Returns a reference to the numeric time unit (e.g. 0, 100, 32768).

Implementors§