Enum clarity_repl::codec::SinglesigHashMode
source · #[repr(u8)]pub enum SinglesigHashMode {
P2PKH = 0,
P2WPKH = 2,
}Variants§
Implementations§
source§impl SinglesigHashMode
impl SinglesigHashMode
pub fn to_address_hash_mode(&self) -> AddressHashMode
pub fn from_address_hash_mode(hm: AddressHashMode) -> Option<SinglesigHashMode>
pub fn from_u8(n: u8) -> Option<SinglesigHashMode>
Trait Implementations§
source§impl Clone for SinglesigHashMode
impl Clone for SinglesigHashMode
source§fn clone(&self) -> SinglesigHashMode
fn clone(&self) -> SinglesigHashMode
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 SinglesigHashMode
impl Debug for SinglesigHashMode
source§impl<'de> Deserialize<'de> for SinglesigHashMode
impl<'de> Deserialize<'de> for SinglesigHashMode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for SinglesigHashMode
impl PartialEq for SinglesigHashMode
source§fn eq(&self, other: &SinglesigHashMode) -> bool
fn eq(&self, other: &SinglesigHashMode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SinglesigHashMode
impl Serialize for SinglesigHashMode
impl StructuralPartialEq for SinglesigHashMode
Auto Trait Implementations§
impl RefUnwindSafe for SinglesigHashMode
impl Send for SinglesigHashMode
impl Sync for SinglesigHashMode
impl Unpin for SinglesigHashMode
impl UnwindSafe for SinglesigHashMode
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