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

Method as_path

graphlite/src/storage/value.rs:278–283  ·  view source on GitHub ↗

Extract as path if possible

(&self)

Source from the content-addressed store, hash-verified

276
277 /// Extract as path if possible
278 pub fn as_path(&self) -> Option<&PathValue> {
279 match self {
280 Value::Path(p) => Some(p),
281 _ => None,
282 }
283 }
284
285 /// Extract as node if possible
286 pub fn as_node(&self) -> Option<&Node> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected