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§
§impl AsMut<PushBytes> for PushBytesBuf
impl AsMut<PushBytes> for PushBytesBuf
§impl AsRef<PushBytes> for PubkeyHash
impl AsRef<PushBytes> for PubkeyHash
§impl AsRef<PushBytes> for PushBytesBuf
impl AsRef<PushBytes> for PushBytesBuf
§impl AsRef<PushBytes> for ScriptHash
impl AsRef<PushBytes> for ScriptHash
§impl AsRef<PushBytes> for SerializedSignature
impl AsRef<PushBytes> for SerializedSignature
§impl AsRef<PushBytes> for WPubkeyHash
impl AsRef<PushBytes> for WPubkeyHash
§impl AsRef<PushBytes> for WScriptHash
impl AsRef<PushBytes> for WScriptHash
§impl Borrow<PushBytes> for PushBytesBuf
impl Borrow<PushBytes> for PushBytesBuf
§impl BorrowMut<PushBytes> for PushBytesBuf
impl BorrowMut<PushBytes> for PushBytesBuf
§fn borrow_mut(&mut self) -> &mut PushBytes
fn borrow_mut(&mut self) -> &mut PushBytes
Mutably borrows from an owned value. Read more
§impl Index<(Bound<usize>, Bound<usize>)> for PushBytes
impl Index<(Bound<usize>, Bound<usize>)> for PushBytes
Script subslicing operation - read slicing safety!
§impl Index<RangeFull> for PushBytes
impl Index<RangeFull> for PushBytes
Script subslicing operation - read slicing safety!
§impl Index<RangeInclusive<usize>> for PushBytes
impl Index<RangeInclusive<usize>> for PushBytes
Script subslicing operation - read slicing safety!
§impl Index<RangeToInclusive<usize>> for PushBytes
impl Index<RangeToInclusive<usize>> for PushBytes
Script subslicing operation - read slicing safety!
§impl PartialOrd for PushBytes
impl PartialOrd for PushBytes
§fn partial_cmp(&self, other: &PushBytes) -> Option<Ordering>
fn partial_cmp(&self, other: &PushBytes) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl ToOwned for PushBytes
impl ToOwned for PushBytes
§type Owned = PushBytesBuf
type Owned = PushBytesBuf
The resulting type after obtaining ownership.
§fn to_owned(&self) -> <PushBytes as ToOwned>::Owned
fn to_owned(&self) -> <PushBytes as ToOwned>::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