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

Method register

graphlite/src/functions/mod.rs:263–265  ·  view source on GitHub ↗

Register a new function

(&mut self, name: &str, function: Box<dyn Function + 'static>)

Source from the content-addressed store, hash-verified

261
262 /// Register a new function
263 pub fn register(&mut self, name: &str, function: Box<dyn Function + 'static>) {
264 self.functions.insert(name.to_uppercase(), function);
265 }
266
267 /// Get a function by name
268 pub fn get(&self, name: &str) -> Option<&dyn Function> {

Callers 1

newMethod · 0.45

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected