[][src]Enum miniscript::miniscript::iter::PkPkh

pub enum PkPkh<Pk: MiniscriptKey> {
    PlainPubkey(Pk),
    HashedPubkey(Pk::Hash),
}

Enum representing either key or a key hash value coming from a miniscript item inside AST

Variants

PlainPubkey(Pk)

Plain public key

HashedPubkey(Pk::Hash)

Hashed public key

Trait Implementations

impl<Pk: Clone + MiniscriptKey> Clone for PkPkh<Pk> where
    Pk::Hash: Clone
[src]

impl<Pk: Debug + MiniscriptKey> Debug for PkPkh<Pk> where
    Pk::Hash: Debug
[src]

impl<Pk: Eq + MiniscriptKey> Eq for PkPkh<Pk> where
    Pk::Hash: Eq
[src]

impl<Pk: PartialEq + MiniscriptKey> PartialEq<PkPkh<Pk>> for PkPkh<Pk> where
    Pk::Hash: PartialEq
[src]

impl<Pk: MiniscriptKey> StructuralEq for PkPkh<Pk>[src]

impl<Pk: MiniscriptKey> StructuralPartialEq for PkPkh<Pk>[src]

Auto Trait Implementations

impl<Pk> RefUnwindSafe for PkPkh<Pk> where
    Pk: RefUnwindSafe,
    <Pk as MiniscriptKey>::Hash: RefUnwindSafe
[src]

impl<Pk> Send for PkPkh<Pk> where
    Pk: Send,
    <Pk as MiniscriptKey>::Hash: Send
[src]

impl<Pk> Sync for PkPkh<Pk> where
    Pk: Sync,
    <Pk as MiniscriptKey>::Hash: Sync
[src]

impl<Pk> Unpin for PkPkh<Pk> where
    Pk: Unpin,
    <Pk as MiniscriptKey>::Hash: Unpin
[src]

impl<Pk> UnwindSafe for PkPkh<Pk> where
    Pk: UnwindSafe,
    <Pk as MiniscriptKey>::Hash: UnwindSafe
[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.