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

Method as_integer

graphlite/src/storage/value.rs:254–259  ·  view source on GitHub ↗

Extract as integer if possible (from number)

(&self)

Source from the content-addressed store, hash-verified

252
253 /// Extract as integer if possible (from number)
254 pub fn as_integer(&self) -> Option<i64> {
255 match self {
256 Value::Number(n) => Some(*n as i64),
257 _ => None,
258 }
259 }
260
261 /// Extract as time window if possible
262 pub fn as_time_window(&self) -> Option<&TimeWindow> {

Callers 1

executeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected