shape-runtime 0.3.0

Bytecode compiler, builtins, and runtime infrastructure for Shape
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Data source capability traits
///
/// These traits define what data sources can do, enabling annotations
/// like @warmup to safely extend data ranges when the source supports it.

/// A data source that supports extending its data range
trait Extendable {
    method can_extend_back() -> bool;
    method can_extend_forward() -> bool;
}

/// A time-series data source with a known timeframe
///
/// Any time-series source that knows its timeframe can potentially be
/// extended by adjusting from/to parameters.
trait TimeSeriesSource {
    method timeframe() -> duration;
}