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 ScriptHash
impl AsRef<PushBytes> for ScriptHash
Source§impl AsRef<PushBytes> for WScriptHash
impl AsRef<PushBytes> for WScriptHash
Source§impl AsRef<PushBytes> for PushBytesBuf
impl AsRef<PushBytes> for PushBytesBuf
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
impl Eq for PushBytes
Source§impl PartialOrd for PushBytes
impl PartialOrd for PushBytes
impl StructuralPartialEq 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