pub trait ForEachKey<Pk: MiniscriptKey> {
    fn for_each_key<'a, F: FnMut(ForEach<'a, Pk>) -> bool>(
        &'a self,
        pred: F
    ) -> bool
    where
        Pk: 'a,
        Pk::Hash: 'a
; fn for_any_key<'a, F: FnMut(ForEach<'a, Pk>) -> bool>(
        &'a self,
        pred: F
    ) -> bool
    where
        Pk: 'a,
        Pk::Hash: 'a
, { ... } }
Expand description

Trait describing the ability to iterate over every key

Required Methods

Run a predicate on every key in the descriptor, returning whether the predicate returned true for every key

Provided Methods

Run a predicate on every key in the descriptor, returning whether the predicate returned true for any key

Implementors