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) -> <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
impl Eq for PushBytes
impl StructuralPartialEq for PushBytes
Auto Trait Implementations§
impl Freeze for PushBytes
impl RefUnwindSafe for PushBytes
impl Send for PushBytes
impl !Sized for PushBytes
impl Sync for PushBytes
impl Unpin for PushBytes
impl UnwindSafe for PushBytes
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.