pub struct Witness<'a> {
pub raw: &'a [u8],
pub item_count: usize,
}Expand description
SegWit witness data for a single input — a sequence of byte-string items.
Stores a zero-copy slice covering the entire witness field (item count varint + all items), so items can be iterated on demand.
Fields§
§raw: &'a [u8]Raw witness bytes starting at the item-count varint.
item_count: usizeNumber of items decoded from the item-count varint.
Implementations§
Trait Implementations§
impl<'a> Copy for Witness<'a>
Auto Trait Implementations§
impl<'a> Freeze for Witness<'a>
impl<'a> RefUnwindSafe for Witness<'a>
impl<'a> Send for Witness<'a>
impl<'a> Sync for Witness<'a>
impl<'a> Unpin for Witness<'a>
impl<'a> UnsafeUnpin for Witness<'a>
impl<'a> UnwindSafe for Witness<'a>
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