Enum sapio_miniscript::ForEach[][src]

pub enum ForEach<'a, Pk: MiniscriptKey + 'a> {
    Key(&'a Pk),
    Hash(&'a Pk::Hash),
}

Either a key or a keyhash

Variants

Key(&'a Pk)

A key

Hash(&'a Pk::Hash)

A keyhash

Implementations

impl<'a, Pk: MiniscriptKey<Hash = Pk>> ForEach<'a, Pk>[src]

pub fn as_key(&self) -> &'a Pk[src]

Convenience method to avoid distinguishing between keys and hashes when these are the same type

Auto Trait Implementations

impl<'a, Pk> RefUnwindSafe for ForEach<'a, Pk> where
    Pk: RefUnwindSafe,
    <Pk as MiniscriptKey>::Hash: RefUnwindSafe

impl<'a, Pk> Send for ForEach<'a, Pk> where
    Pk: Sync,
    <Pk as MiniscriptKey>::Hash: Sync

impl<'a, Pk> Sync for ForEach<'a, Pk> where
    Pk: Sync,
    <Pk as MiniscriptKey>::Hash: Sync

impl<'a, Pk> Unpin for ForEach<'a, Pk>

impl<'a, Pk> UnwindSafe for ForEach<'a, Pk> where
    Pk: RefUnwindSafe,
    <Pk as MiniscriptKey>::Hash: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.