MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / rows_bounds

Function rows_bounds

nodedb-query/src/window/frame.rs:65–69  ·  view source on GitHub ↗
(start: &FrameBound, end: &FrameBound, pos: usize, len: usize)

Source from the content-addressed store, hash-verified

63// ── ROWS ─────────────────────────────────────────────────────────────────────
64
65fn rows_bounds(start: &FrameBound, end: &FrameBound, pos: usize, len: usize) -> (usize, usize) {
66 let start_idx = rows_bound_to_idx(start, pos, len, true);
67 let end_idx = rows_bound_to_idx(end, pos, len, false);
68 (start_idx.min(end_idx), start_idx.max(end_idx))
69}
70
71fn rows_bound_to_idx(bound: &FrameBound, pos: usize, len: usize, _is_start: bool) -> usize {
72 match bound {

Callers 1

evaluate_frame_boundsFunction · 0.85

Calls 1

rows_bound_to_idxFunction · 0.85

Tested by

no test coverage detected