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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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