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

Method is_string

plugins/src/options.rs:491–493  ·  view source on GitHub ↗

Returns true if the `Value` is a String. Returns false otherwise. For any Value on which `is_string` returns true, `as_str` is guaranteed to return the string slice.

(&self)

Source from the content-addressed store, hash-verified

489 /// For any Value on which `is_string` returns true, `as_str` is guaranteed
490 /// to return the string slice.
491 pub fn is_string(&self) -> bool {
492 self.as_str().is_some()
493 }
494
495 /// If the `Value` is a String, returns the associated str. Returns None
496 /// otherwise.

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.80

Tested by

no test coverage detected