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

Method as_i64_arr

plugins/src/options.rs:569–574  ·  view source on GitHub ↗

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

(&self)

Source from the content-addressed store, hash-verified

567 /// If the `Value` is a Vec<i64>, returns the associated Vec<i64>.
568 /// Returns None otherwise.
569 pub fn as_i64_arr(&self) -> Option<&Vec<i64>> {
570 match self {
571 Value::IntegerArray(sa) => Some(sa),
572 _ => None,
573 }
574 }
575}
576
577#[derive(Clone, Debug)]

Callers 1

is_i64_arrMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected