Enum miniscript::interpreter::HashLockType
source · pub enum HashLockType {
Sha256(Hash),
Hash256(Hash),
Hash160(Hash),
Ripemd160(Hash),
}
Expand description
Type of HashLock used for SatisfiedConstraint structure
Variants§
Sha256(Hash)
SHA 256 hashlock
Hash256(Hash)
Hash 256 hashlock
Hash160(Hash)
Hash160 hashlock
Ripemd160(Hash)
Ripemd160 hashlock
Trait Implementations§
source§impl Clone for HashLockType
impl Clone for HashLockType
source§fn clone(&self) -> HashLockType
fn clone(&self) -> HashLockType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HashLockType
impl Debug for HashLockType
source§impl Hash for HashLockType
impl Hash for HashLockType
source§impl PartialEq<HashLockType> for HashLockType
impl PartialEq<HashLockType> for HashLockType
source§fn eq(&self, other: &HashLockType) -> bool
fn eq(&self, other: &HashLockType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HashLockType
impl Eq for HashLockType
impl StructuralEq for HashLockType
impl StructuralPartialEq for HashLockType
Auto Trait Implementations§
impl RefUnwindSafe for HashLockType
impl Send for HashLockType
impl Sync for HashLockType
impl Unpin for HashLockType
impl UnwindSafe for HashLockType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more