Enum sapio_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
sourceimpl Clone for HashLockType
impl Clone for HashLockType
sourcefn clone(&self) -> HashLockType
fn clone(&self) -> HashLockType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HashLockType
impl Debug for HashLockType
sourceimpl PartialEq<HashLockType> for HashLockType
impl PartialEq<HashLockType> for HashLockType
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &HashLockType) -> bool
fn ne(&self, other: &HashLockType) -> bool
This method tests for !=
.
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
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