pub struct WitnessProgram(/* private fields */);Expand description
Witness program: a part of post-segwit scriptPubkey; a data pushed to the
stack following witness version
Trait Implementations§
Source§impl AsMut<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
impl AsMut<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
Source§impl AsRef<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
impl AsRef<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
Source§impl Borrow<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
impl Borrow<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
Source§impl BorrowMut<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
impl BorrowMut<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
Source§impl Clone for WitnessProgram
impl Clone for WitnessProgram
Source§fn clone(&self) -> WitnessProgram
fn clone(&self) -> WitnessProgram
Returns a duplicate 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 WitnessProgram
impl Debug for WitnessProgram
Source§impl Default for WitnessProgram
impl Default for WitnessProgram
Source§fn default() -> WitnessProgram
fn default() -> WitnessProgram
Returns the “default value” for a type. Read more
Source§impl Deref for WitnessProgram
impl Deref for WitnessProgram
Source§impl DerefMut for WitnessProgram
impl DerefMut for WitnessProgram
Source§impl Display for WitnessProgram
impl Display for WitnessProgram
Source§impl From<TweakedPublicKey> for WitnessProgram
impl From<TweakedPublicKey> for WitnessProgram
Source§fn from(tpk: TweakedPublicKey) -> Self
fn from(tpk: TweakedPublicKey) -> Self
Converts to this type from the input type.
Source§impl From<WPubkeyHash> for WitnessProgram
impl From<WPubkeyHash> for WitnessProgram
Source§fn from(wpkh: WPubkeyHash) -> Self
fn from(wpkh: WPubkeyHash) -> Self
Converts to this type from the input type.
Source§impl From<WScriptHash> for WitnessProgram
impl From<WScriptHash> for WitnessProgram
Source§fn from(wsh: WScriptHash) -> Self
fn from(wsh: WScriptHash) -> Self
Converts to this type from the input type.
Source§impl From<WitnessProgram> for Box<[u8]>
impl From<WitnessProgram> for Box<[u8]>
Source§fn from(wrapped: WitnessProgram) -> Self
fn from(wrapped: WitnessProgram) -> Self
Converts to this type from the input type.
Source§impl Hash for WitnessProgram
impl Hash for WitnessProgram
Source§impl Ord for WitnessProgram
impl Ord for WitnessProgram
Source§fn cmp(&self, other: &WitnessProgram) -> Ordering
fn cmp(&self, other: &WitnessProgram) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WitnessProgram
impl PartialEq for WitnessProgram
Source§impl PartialOrd for WitnessProgram
impl PartialOrd for WitnessProgram
Source§impl Strategy for WitnessProgram
impl Strategy for WitnessProgram
Source§impl Wrapper for WitnessProgram
impl Wrapper for WitnessProgram
Source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
Source§fn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
Source§fn as_inner_mut(&mut self) -> &mut Self::Inner
fn as_inner_mut(&mut self) -> &mut Self::Inner
Returns a mutable reference to the inner representation for the wrapper
type
Source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
impl Eq for WitnessProgram
impl StructuralPartialEq for WitnessProgram
Auto Trait Implementations§
impl Freeze for WitnessProgram
impl RefUnwindSafe for WitnessProgram
impl Send for WitnessProgram
impl Sync for WitnessProgram
impl Unpin for WitnessProgram
impl UnwindSafe for WitnessProgram
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,
Source§impl<T> StrictDecode for T
impl<T> StrictDecode for T
Source§fn strict_decode<D>(d: D) -> Result<T, Error>where
D: Read,
fn strict_decode<D>(d: D) -> Result<T, Error>where
D: Read,
Decode with the given
std::io::Read instance; must either
construct an instance or return implementation-specific error type.Source§fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
Tries to deserialize byte array into the current type using
StrictDecode::strict_decode. If there are some data remains in the
buffer once deserialization is completed, fails with
Error::DataNotEntirelyConsumed. Use io::Cursor over the buffer and
StrictDecode::strict_decode to avoid such failures.Source§fn strict_file_load(path: impl AsRef<Path>) -> Result<Self, Error>
fn strict_file_load(path: impl AsRef<Path>) -> Result<Self, Error>
Reads data from file at
path and reconstructs object from it. Fails
with Error::DataNotEntirelyConsumed if file contains remaining
data after the object reconstruction.Source§impl<T> StrictEncode for T
impl<T> StrictEncode for T
Source§fn strict_encode<E>(&self, e: E) -> Result<usize, Error>where
E: Write,
fn strict_encode<E>(&self, e: E) -> Result<usize, Error>where
E: Write,
Encode with the given
std::io::Write instance; must return result
with either amount of bytes encoded – or implementation-specific
error type.Source§fn strict_serialize(&self) -> Result<Vec<u8>, Error>
fn strict_serialize(&self) -> Result<Vec<u8>, Error>
Serializes data as a byte array using
StrictEncode::strict_encode
function