Enum bdk_wallet::keys::ScriptContextEnum
source · pub enum ScriptContextEnum {
Legacy,
Segwitv0,
Tap,
}
Expand description
Enum representation of the known valid ScriptContext
s
Variants§
Implementations§
source§impl ScriptContextEnum
impl ScriptContextEnum
sourcepub fn is_legacy(&self) -> bool
pub fn is_legacy(&self) -> bool
Returns whether the script context is ScriptContextEnum::Legacy
sourcepub fn is_segwit_v0(&self) -> bool
pub fn is_segwit_v0(&self) -> bool
Returns whether the script context is ScriptContextEnum::Segwitv0
sourcepub fn is_taproot(&self) -> bool
pub fn is_taproot(&self) -> bool
Returns whether the script context is ScriptContextEnum::Tap
Trait Implementations§
source§impl Clone for ScriptContextEnum
impl Clone for ScriptContextEnum
source§fn clone(&self) -> ScriptContextEnum
fn clone(&self) -> ScriptContextEnum
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 ScriptContextEnum
impl Debug for ScriptContextEnum
source§impl PartialEq for ScriptContextEnum
impl PartialEq for ScriptContextEnum
source§fn eq(&self, other: &ScriptContextEnum) -> bool
fn eq(&self, other: &ScriptContextEnum) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ScriptContextEnum
impl Eq for ScriptContextEnum
impl StructuralPartialEq for ScriptContextEnum
Auto Trait Implementations§
impl Freeze for ScriptContextEnum
impl RefUnwindSafe for ScriptContextEnum
impl Send for ScriptContextEnum
impl Sync for ScriptContextEnum
impl Unpin for ScriptContextEnum
impl UnwindSafe for ScriptContextEnum
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more