[][src]Trait miniscript::ForEachKey

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,
        mut pred: F
    ) -> bool
    where
        Pk: 'a,
        Pk::Hash: 'a
, { ... } }

Trait describing the ability to iterate over every key

Required methods

fn for_each_key<'a, F: FnMut(ForEach<'a, Pk>) -> bool>(
    &'a self,
    pred: F
) -> bool where
    Pk: 'a,
    Pk::Hash: 'a, 
[src]

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

Loading content...

Provided methods

fn for_any_key<'a, F: FnMut(ForEach<'a, Pk>) -> bool>(
    &'a self,
    mut pred: F
) -> bool where
    Pk: 'a,
    Pk::Hash: 'a, 
[src]

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

Loading content...

Implementors

impl<Pk: MiniscriptKey> ForEachKey<Pk> for Descriptor<Pk>[src]

impl<Pk: MiniscriptKey> ForEachKey<Pk> for miniscript::policy::concrete::Policy<Pk>[src]

impl<Pk: MiniscriptKey> ForEachKey<Pk> for miniscript::policy::semantic::Policy<Pk>[src]

impl<Pk: MiniscriptKey> ForEachKey<Pk> for Bare<Pk>[src]

impl<Pk: MiniscriptKey> ForEachKey<Pk> for Pkh<Pk>[src]

impl<Pk: MiniscriptKey> ForEachKey<Pk> for Sh<Pk>[src]

impl<Pk: MiniscriptKey> ForEachKey<Pk> for Wpkh<Pk>[src]

impl<Pk: MiniscriptKey> ForEachKey<Pk> for Wsh<Pk>[src]

impl<Pk: MiniscriptKey, Ctx: ScriptContext> ForEachKey<Pk> for Terminal<Pk, Ctx>[src]

impl<Pk: MiniscriptKey, Ctx: ScriptContext> ForEachKey<Pk> for SortedMultiVec<Pk, Ctx>[src]

impl<Pk: MiniscriptKey, Ctx: ScriptContext> ForEachKey<Pk> for Miniscript<Pk, Ctx>[src]

Loading content...