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

Method contains

plugins/lsps-plugin/src/core/tlv.rs:156–158  ·  view source on GitHub ↗

Check if a type exists.

(&self, type_: u64)

Source from the content-addressed store, hash-verified

154
155 /// Check if a type exists.
156 pub fn contains(&self, type_: u64) -> bool {
157 self.0.iter().any(|rec| rec.type_ == type_)
158 }
159
160 /// Insert or override a `tu64` value for `type_` (keeps canonical TLV order).
161 pub fn set_tu64(&mut self, type_: u64, value: u64) {

Callers 5

register_pathFunction · 0.80
convert_json_to_responseFunction · 0.80
parse_optionsFunction · 0.80
validate_portFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected