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

Method as_number

graphlite/src/storage/value.rs:168–173  ·  view source on GitHub ↗

Extract as number if possible

(&self)

Source from the content-addressed store, hash-verified

166impl Value {
167 /// Extract as number if possible
168 pub fn as_number(&self) -> Option<f64> {
169 match self {
170 Value::Number(n) => Some(*n),
171 _ => None,
172 }
173 }
174
175 /// Extract as string if possible
176 pub fn as_string(&self) -> Option<&str> {

Callers 15

executeMethod · 0.80
value_to_stringMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
test_no_empty_labelsFunction · 0.80

Calls

no outgoing calls