pub struct PushBytes(/* private fields */);
Expand description
Byte slices that can be in Bitcoin script.
The encoding of Bitcoin script restricts data pushes to be less than 2^32 bytes long. This type represents slices that are guaranteed to be within the limit so they can be put in the script safely.
Implementations§
Trait Implementations§
Source§impl AsMut<PushBytes> for PushBytesBuf
impl AsMut<PushBytes> for PushBytesBuf
Source§impl AsRef<PushBytes> for PubkeyHash
impl AsRef<PushBytes> for PubkeyHash
Source§impl AsRef<PushBytes> for PushBytesBuf
impl AsRef<PushBytes> for PushBytesBuf
Source§impl AsRef<PushBytes> for ScriptHash
impl AsRef<PushBytes> for ScriptHash
Source§impl AsRef<PushBytes> for SerializedSignature
impl AsRef<PushBytes> for SerializedSignature
Source§impl AsRef<PushBytes> for WPubkeyHash
impl AsRef<PushBytes> for WPubkeyHash
Source§impl AsRef<PushBytes> for WScriptHash
impl AsRef<PushBytes> for WScriptHash
Source§impl Borrow<PushBytes> for PushBytesBuf
impl Borrow<PushBytes> for PushBytesBuf
Source§impl BorrowMut<PushBytes> for PushBytesBuf
impl BorrowMut<PushBytes> for PushBytesBuf
Source§fn borrow_mut(&mut self) -> &mut PushBytes
fn borrow_mut(&mut self) -> &mut PushBytes
Mutably borrows from an owned value. Read more
Source§impl Index<(Bound<usize>, Bound<usize>)> for PushBytes
Script subslicing operation - read slicing safety!
impl Index<(Bound<usize>, Bound<usize>)> for PushBytes
Script subslicing operation - read slicing safety!
Source§impl Index<RangeInclusive<usize>> for PushBytes
Script subslicing operation - read slicing safety!
impl Index<RangeInclusive<usize>> for PushBytes
Script subslicing operation - read slicing safety!
Source§impl Index<RangeToInclusive<usize>> for PushBytes
Script subslicing operation - read slicing safety!
impl Index<RangeToInclusive<usize>> for PushBytes
Script subslicing operation - read slicing safety!
Source§impl PartialOrd for PushBytes
impl PartialOrd for PushBytes
Source§impl ToOwned for PushBytes
impl ToOwned for PushBytes
Source§type Owned = PushBytesBuf
type Owned = PushBytesBuf
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more