MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / is_valid_at

Method is_valid_at

graphlite/src/storage/value.rs:53–55  ·  view source on GitHub ↗

Check if this value is valid at a specific point in time

(&self, time: DateTime<Utc>)

Source from the content-addressed store, hash-verified

51
52 /// Check if this value is valid at a specific point in time
53 pub fn is_valid_at(&self, time: DateTime<Utc>) -> bool {
54 time >= self.valid_from && self.valid_to.is_none_or(|vt| time < vt)
55 }
56
57 /// Check if this value is currently valid (valid_to is None or in the future)
58 pub fn is_current(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected