1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! The one bridge the benches need into the DAG's private history type: a `Hist<'_, T>` an actor
//! can hand a node, built outside a `Graph`.
//!
//! `Hist`'s fields are private and only [`crate::Buffering`] constructs one — but
//! `Buffering<C, R>: Nudge` is public, and `Nudge::view` is exactly "read this scratch back as the
//! dep's out". So the scratch *is* the buffer's [`Rows`], and this owns one.
//!
//! Retention is unbounded where the frame's `Buffer<C, K>` trims to `K`, and the two are
//! nonetheless the same reading. `Hist::all` re-cuts to the consumer's declared horizon, so extra
//! history behind it is invisible; `trailing_at` at `Horizon::Elems` never consults the watermark;
//! and at `Horizon::Over` the window is complete iff `cut >= watermark`, which holds here exactly
//! when it holds there — a trimming buffer's watermark is the last *dropped* stamp, always at or
//! behind `cut`, and before its first drop it is the first stamp ever seen, which is what this
//! holds forever.
//!
//! ponytail: unbounded, because every series a bench buffers is small — a day of 1m bars is 1440
//! rows, and OI publishes 288 times. Trim to the join of the declared reaches if a window ever runs
//! long enough for that to matter.
use crate::;
// hand-written: `derive` would demand `T: Default`, which no retained row is.