Enum sapio_miniscript::interpreter::HashLockType
source · [−]pub enum HashLockType<'intp> {
Sha256(&'intp Hash),
Hash256(&'intp Hash),
Hash160(&'intp Hash),
Ripemd160(&'intp Hash),
}
Expand description
Type of HashLock used for SatisfiedConstraint structure
Variants
Sha256(&'intp Hash)
SHA 256 hashlock
Hash256(&'intp Hash)
Hash 256 hashlock
Hash160(&'intp Hash)
Hash160 hashlock
Ripemd160(&'intp Hash)
Ripemd160 hashlock
Trait Implementations
sourceimpl<'intp> Clone for HashLockType<'intp>
impl<'intp> Clone for HashLockType<'intp>
sourcefn clone(&self) -> HashLockType<'intp>
fn clone(&self) -> HashLockType<'intp>
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<'intp> Debug for HashLockType<'intp>
impl<'intp> Debug for HashLockType<'intp>
sourceimpl<'intp> PartialEq<HashLockType<'intp>> for HashLockType<'intp>
impl<'intp> PartialEq<HashLockType<'intp>> for HashLockType<'intp>
sourcefn eq(&self, other: &HashLockType<'intp>) -> bool
fn eq(&self, other: &HashLockType<'intp>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HashLockType<'intp>) -> bool
fn ne(&self, other: &HashLockType<'intp>) -> bool
This method tests for !=
.
impl<'intp> Copy for HashLockType<'intp>
impl<'intp> Eq for HashLockType<'intp>
impl<'intp> StructuralEq for HashLockType<'intp>
impl<'intp> StructuralPartialEq for HashLockType<'intp>
Auto Trait Implementations
impl<'intp> RefUnwindSafe for HashLockType<'intp>
impl<'intp> Send for HashLockType<'intp>
impl<'intp> Sync for HashLockType<'intp>
impl<'intp> Unpin for HashLockType<'intp>
impl<'intp> UnwindSafe for HashLockType<'intp>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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