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

Method is_str_arr

plugins/src/options.rs:546–548  ·  view source on GitHub ↗

Returns true if the `Value` is a Vec . Returns false otherwise. For any Value on which `is_str_arr` returns true, `as_str_arr` is guaranteed to return the Vec value.

(&self)

Source from the content-addressed store, hash-verified

544 /// For any Value on which `is_str_arr` returns true, `as_str_arr` is
545 /// guaranteed to return the Vec<String> value.
546 pub fn is_str_arr(&self) -> bool {
547 self.as_str_arr().is_some()
548 }
549
550 /// If the `Value` is a Vec<String>, returns the associated Vec<String>.
551 /// Returns None otherwise.

Callers

nothing calls this directly

Calls 1

as_str_arrMethod · 0.80

Tested by

no test coverage detected