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

Function update_bounds

nodedb/src/engine/array/purge/execute.rs:261–264  ·  view source on GitHub ↗
(min: &mut Option<TileId>, max: &mut Option<TileId>, id: TileId)

Source from the content-addressed store, hash-verified

259}
260
261fn update_bounds(min: &mut Option<TileId>, max: &mut Option<TileId>, id: TileId) {
262 *min = Some(min.map_or(id, |m| m.min(id)));
263 *max = Some(max.map_or(id, |m| m.max(id)));
264}
265
266fn write_atomic(path: &std::path::Path, bytes: &[u8]) -> std::io::Result<()> {
267 let mut tmp = path.to_path_buf();

Callers 1

rewrite_segmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected