MCPcopy Create free account
hub / github.com/ElementsProject/lightning / as_str_arr

Method as_str_arr

plugins/src/options.rs:552–557  ·  view source on GitHub ↗

If the `Value` is a Vec , returns the associated Vec . Returns None otherwise.

(&self)

Source from the content-addressed store, hash-verified

550 /// If the `Value` is a Vec<String>, returns the associated Vec<String>.
551 /// Returns None otherwise.
552 pub fn as_str_arr(&self) -> Option<&Vec<String>> {
553 match self {
554 Value::StringArray(sa) => Some(sa),
555 _ => None,
556 }
557 }
558
559 /// Returns true if the `Value` is a Vec<i64>. Returns false otherwise.
560 ///

Callers 3

gather_sourcesFunction · 0.80
is_str_arrMethod · 0.80
parse_optionsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected