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

Method as_bool

plugins/src/options.rs:535–540  ·  view source on GitHub ↗

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

(&self)

Source from the content-addressed store, hash-verified

533 /// If the `Value` is a Boolean, returns the associated bool. Returns None
534 /// otherwise.
535 pub fn as_bool(&self) -> Option<bool> {
536 match *self {
537 Value::Boolean(b) => Some(b),
538 _ => None,
539 }
540 }
541
542 /// Returns true if the `Value` is a Vec<String>. Returns false otherwise.
543 ///

Callers 2

parse_register_path_argsFunction · 0.80
is_booleanMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected