#[repr(u8)]pub enum TapscriptPreimageType {
LeafPreimage = 0,
BranchPreimage = 1,
}Expand description
Type of tapscript sibling preimage.
This corresponds to commitment.TapscriptPreimageType in Go.
Variants§
LeafPreimage = 0
Pre-image that’s a leaf script.
BranchPreimage = 1
Pre-image that’s a branch (64-bytes of two child pre-images).
Trait Implementations§
Source§impl Clone for TapscriptPreimageType
impl Clone for TapscriptPreimageType
Source§fn clone(&self) -> TapscriptPreimageType
fn clone(&self) -> TapscriptPreimageType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TapscriptPreimageType
Source§impl Debug for TapscriptPreimageType
impl Debug for TapscriptPreimageType
Source§impl<'de> Deserialize<'de> for TapscriptPreimageType
impl<'de> Deserialize<'de> for TapscriptPreimageType
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
impl Eq for TapscriptPreimageType
Source§impl Hash for TapscriptPreimageType
impl Hash for TapscriptPreimageType
Source§impl PartialEq for TapscriptPreimageType
impl PartialEq for TapscriptPreimageType
Source§fn eq(&self, other: &TapscriptPreimageType) -> bool
fn eq(&self, other: &TapscriptPreimageType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TapscriptPreimageType
impl Serialize for TapscriptPreimageType
impl StructuralPartialEq for TapscriptPreimageType
Auto Trait Implementations§
impl Freeze for TapscriptPreimageType
impl RefUnwindSafe for TapscriptPreimageType
impl Send for TapscriptPreimageType
impl Sync for TapscriptPreimageType
impl Unpin for TapscriptPreimageType
impl UnsafeUnpin for TapscriptPreimageType
impl UnwindSafe for TapscriptPreimageType
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