pub struct TapLeaf {
pub version: u8,
pub script: Vec<u8>,
}Expand description
A leaf node in a TapTree, containing a script and leaf version.
Fields§
§version: u8The leaf version (default 0xC0 for Tapscript as defined in BIP-342).
script: Vec<u8>The script bytes.
Implementations§
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 UnsafeUnpin 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