#[non_exhaustive]pub enum HashType {
Ripemd,
Sha256,
Hash160,
Hash256,
}Expand description
Enum for marking invalid preimage error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ripemd
The ripemd hash algorithm.
Sha256
The sha-256 hash algorithm.
Hash160
The hash-160 hash algorithm.
Hash256
The Hash-256 hash algorithm.
Trait Implementations§
Source§impl Ord for HashType
impl Ord for HashType
Source§impl PartialOrd for HashType
impl PartialOrd for HashType
impl Copy for HashType
impl Eq for HashType
impl StructuralPartialEq for HashType
Auto Trait Implementations§
impl Freeze for HashType
impl RefUnwindSafe for HashType
impl Send for HashType
impl Sync for HashType
impl Unpin for HashType
impl UnsafeUnpin for HashType
impl UnwindSafe for HashType
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