MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / cached_depth_covers

Function cached_depth_covers

packages/server/src/api/routes.rs:244–250  ·  view source on GitHub ↗
(cached: Option<usize>, requested: Option<usize>)

Source from the content-addressed store, hash-verified

242}
243
244fn cached_depth_covers(cached: Option<usize>, requested: Option<usize>) -> bool {
245 match (cached, requested) {
246 (None, _) => true,
247 (Some(_), None) => false,
248 (Some(cached), Some(requested)) => cached >= requested,
249 }
250}
251
252fn cached_depth_rank(depth: Option<usize>) -> usize {
253 depth.unwrap_or(usize::MAX)

Callers 1

get_compatibleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected