]> git.bitcoin.ninja Git - rust-lightning/commit
Add IndexedMap::get_key_value
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 12 Dec 2023 20:51:22 +0000 (14:51 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 11 Apr 2024 00:11:19 +0000 (19:11 -0500)
commitb783736356d17704852ea121a325b2978884ad9a
treecac060ec06fd12b11b6e5df12981f2b840d6fbdc
parentd85e0d619a5225cbf73bdf7cac7f400529cb6a73
Add IndexedMap::get_key_value

Useful for applying Option::map when needing both the key and value for
when needing a reference to the key with a longer lifetime.
lightning/src/util/indexed_map.rs