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

Method get_argument

graphlite/src/functions/function_trait.rs:82–89  ·  view source on GitHub ↗

Get a specific argument by index

(&self, index: usize)

Source from the content-addressed store, hash-verified

80
81 /// Get a specific argument by index
82 pub fn get_argument(&self, index: usize) -> FunctionResult<&Value> {
83 self.arguments
84 .get(index)
85 .ok_or_else(|| FunctionError::InvalidArgumentCount {
86 expected: index + 1,
87 actual: self.arguments.len(),
88 })
89 }
90
91 /// Get the number of arguments
92 pub fn argument_count(&self) -> usize {

Callers 6

executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls 2

getMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected