pub struct TapLeaf {
pub version: LeafVersion,
pub script: Vec<u8>,
}Expand description
A leaf in the tap tree
Fields§
§version: LeafVersionLeaf version
script: Vec<u8>The script
Implementations§
Source§impl TapLeaf
impl TapLeaf
Sourcepub fn with_version(version: LeafVersion, script: Vec<u8>) -> Self
pub fn with_version(version: LeafVersion, script: Vec<u8>) -> Self
Create a leaf with custom version
Sourcepub fn hash(&self) -> TapLeafHash
pub fn hash(&self) -> TapLeafHash
Compute the leaf hash
Trait Implementations§
impl Eq for TapLeaf
impl StructuralPartialEq for TapLeaf
Auto Trait Implementations§
impl Freeze for TapLeaf
impl RefUnwindSafe for TapLeaf
impl Send for TapLeaf
impl Sync for TapLeaf
impl Unpin for TapLeaf
impl UnwindSafe for TapLeaf
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