MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / get_arg_value

Method get_arg_value

aiscript-directive/src/lib.rs:32–38  ·  view source on GitHub ↗
(&self, name: &'static str)

Source from the content-addressed store, hash-verified

30
31impl Directive {
32 pub fn get_arg_value(&self, name: &'static str) -> Option<&Value> {
33 if let DirectiveParams::KeyValue(kv) = &self.params {
34 kv.get(name)
35 } else {
36 None
37 }
38 }
39}
40
41pub struct DirectiveParser<'a, 'b: 'a> {

Callers 1

parse_directiveMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected