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

Method get_number

graphlite/tests/testutils/cli_fixture.rs:224–229  ·  view source on GitHub ↗

Get a number value

(&self, key: &str)

Source from the content-addressed store, hash-verified

222
223 /// Get a number value
224 pub fn get_number(&self, key: &str) -> Option<f64> {
225 match self.get(key) {
226 Some(Value::Number(n)) => Some(*n),
227 _ => None,
228 }
229 }
230
231 /// Get a boolean value
232 pub fn get_bool(&self, key: &str) -> Option<bool> {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected