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

Method is_boolean

plugins/src/options.rs:529–531  ·  view source on GitHub ↗

Returns true if the `Value` is a Boolean. Returns false otherwise. For any Value on which `is_boolean` returns true, `as_bool` is guaranteed to return the boolean value.

(&self)

Source from the content-addressed store, hash-verified

527 /// For any Value on which `is_boolean` returns true, `as_bool` is
528 /// guaranteed to return the boolean value.
529 pub fn is_boolean(&self) -> bool {
530 self.as_bool().is_some()
531 }
532
533 /// If the `Value` is a Boolean, returns the associated bool. Returns None
534 /// otherwise.

Callers

nothing calls this directly

Calls 1

as_boolMethod · 0.80

Tested by

no test coverage detected