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

Method is_i64

plugins/src/options.rs:512–514  ·  view source on GitHub ↗

Returns true if the `Value` is an integer between `i64::MIN` and `i64::MAX`. For any Value on which `is_i64` returns true, `as_i64` is guaranteed to return the integer value.

(&self)

Source from the content-addressed store, hash-verified

510 /// For any Value on which `is_i64` returns true, `as_i64` is guaranteed to
511 /// return the integer value.
512 pub fn is_i64(&self) -> bool {
513 self.as_i64().is_some()
514 }
515
516 /// If the `Value` is an integer, represent it as i64. Returns
517 /// None otherwise.

Callers

nothing calls this directly

Calls 1

as_i64Method · 0.80

Tested by

no test coverage detected