Enum clarity_repl::clarity::codec::transaction::SinglesigHashMode
source · [−]#[repr(u8)]
pub enum SinglesigHashMode {
P2PKH,
P2WPKH,
}
Variants
P2PKH
P2WPKH
Implementations
sourceimpl 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
sourceimpl Clone for SinglesigHashMode
impl Clone for SinglesigHashMode
sourcefn clone(&self) -> SinglesigHashMode
fn clone(&self) -> SinglesigHashMode
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 moresourceimpl Debug for SinglesigHashMode
impl Debug for SinglesigHashMode
sourceimpl<'de> Deserialize<'de> for SinglesigHashMode
impl<'de> Deserialize<'de> for SinglesigHashMode
sourcefn 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
sourceimpl PartialEq<SinglesigHashMode> for SinglesigHashMode
impl PartialEq<SinglesigHashMode> for SinglesigHashMode
sourcefn eq(&self, other: &SinglesigHashMode) -> bool
fn eq(&self, other: &SinglesigHashMode) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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