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

Method as_vector

graphlite/src/storage/value.rs:270–275  ·  view source on GitHub ↗

Extract as vector if possible

(&self)

Source from the content-addressed store, hash-verified

268
269 /// Extract as vector if possible
270 pub fn as_vector(&self) -> Option<&Vec<f32>> {
271 match self {
272 Value::Vector(v) => Some(v),
273 _ => None,
274 }
275 }
276
277 /// Extract as path if possible
278 pub fn as_path(&self) -> Option<&PathValue> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected