Enum sapio_miniscript::miniscript::iter::PkPkh
source · [−]pub enum PkPkh<Pk: MiniscriptKey> {
PlainPubkey(Pk),
HashedPubkey(Pk::Hash),
}
Expand description
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
sourceimpl<Pk: PartialEq + MiniscriptKey> PartialEq<PkPkh<Pk>> for PkPkh<Pk> where
Pk::Hash: PartialEq,
impl<Pk: PartialEq + MiniscriptKey> PartialEq<PkPkh<Pk>> for PkPkh<Pk> where
Pk::Hash: PartialEq,
impl<Pk: Eq + MiniscriptKey> Eq for PkPkh<Pk> where
Pk::Hash: Eq,
impl<Pk: MiniscriptKey> StructuralEq for PkPkh<Pk>
impl<Pk: MiniscriptKey> StructuralPartialEq for PkPkh<Pk>
Auto Trait Implementations
impl<Pk> RefUnwindSafe for PkPkh<Pk> where
Pk: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash: RefUnwindSafe,
impl<Pk> Send for PkPkh<Pk> where
Pk: Send,
<Pk as MiniscriptKey>::Hash: Send,
impl<Pk> Sync for PkPkh<Pk> where
Pk: Sync,
<Pk as MiniscriptKey>::Hash: Sync,
impl<Pk> Unpin for PkPkh<Pk> where
Pk: Unpin,
<Pk as MiniscriptKey>::Hash: Unpin,
impl<Pk> UnwindSafe for PkPkh<Pk> where
Pk: UnwindSafe,
<Pk as MiniscriptKey>::Hash: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more