diff options
author | Connor Brewster <cbrewster@hey.com> | 2024-04-19T18·57-0500 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-04-19T20·10+0000 |
commit | 150106610e60e95267c0968a9679797b05db7f3d (patch) | |
tree | 391d9c4a00685f53a0d31c84e94af2db2d22ec40 /tvix/store | |
parent | 8a40c92f5d62466d51b9e59a79cff3108aeff1d7 (diff) |
feat(tvix/castore): add convenience `add` method to Directory r/7978
This adds `Directory::add` which is a convenience helper for adding nodes into a `Directory` while preserving sorted order. This implements `Ord` and `PartialOrd` for `FileNode`, `SymlinkNode`, and `DirectoryNode` so `binary_search` can be used. Change-Id: I94b86bdef5d0da55aa352e098988b9704cafca19 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11481 Autosubmit: Connor Brewster <cbrewster@hey.com> Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/store')
0 files changed, 0 insertions, 0 deletions