Trait elements_miniscript::ForEachKey
source · pub trait ForEachKey<Pk>where
Pk: MiniscriptKey,{
// Required method
fn for_each_key<'a, F>(&'a self, pred: F) -> bool
where F: FnMut(&'a Pk) -> bool,
Pk: 'a;
// Provided method
fn for_any_key<'a, F>(&'a self, pred: F) -> bool
where F: FnMut(&'a Pk) -> bool,
Pk: 'a { ... }
}Expand description
Either a key or keyhash, but both contain Pk Trait describing the ability to iterate over every key