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

Method as_i64

plugins/src/options.rs:518–523  ·  view source on GitHub ↗

If the `Value` is an integer, represent it as i64. Returns None otherwise.

(&self)

Source from the content-addressed store, hash-verified

516 /// If the `Value` is an integer, represent it as i64. Returns
517 /// None otherwise.
518 pub fn as_i64(&self) -> Option<i64> {
519 match *self {
520 Value::Integer(n) => Some(n),
521 _ => None,
522 }
523 }
524
525 /// Returns true if the `Value` is a Boolean. Returns false otherwise.
526 ///

Callers 3

fromMethod · 0.80
handle_initMethod · 0.80
is_i64Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected