Struct bdk_chain::bitcoin::blockdata::script::PushBytesBuf

pub struct PushBytesBuf(/* private fields */);
Expand description

Owned, growable counterpart to PushBytes.

Implementations§

§

impl PushBytesBuf

pub const fn new() -> PushBytesBuf

Creates a new empty PushBytesBuf.

pub fn with_capacity(capacity: usize) -> PushBytesBuf

Creates a new empty PushBytesBuf with reserved capacity.

pub fn reserve(&mut self, additional_capacity: usize)

Reserve capacity for additional_capacity bytes.

pub fn push(&mut self, byte: u8) -> Result<(), PushBytesError>

Try pushing a single byte.

§Errors

This method fails if self would exceed the limit.

pub fn extend_from_slice(&mut self, bytes: &[u8]) -> Result<(), PushBytesError>

Try appending a slice to PushBytesBuf

§Errors

This method fails if self would exceed the limit.

pub fn pop(&mut self) -> Option<u8>

Remove the last byte from buffer if any.

pub fn remove(&mut self, index: usize) -> u8

Remove the byte at index and return it.

§Panics

This method panics if index is out of bounds.

pub fn clear(&mut self)

Remove all bytes from buffer without affecting capacity.

pub fn truncate(&mut self, len: usize)

Remove bytes from buffer past len.

pub fn as_push_bytes(&self) -> &PushBytes

Extracts PushBytes slice

pub fn as_mut_push_bytes(&mut self) -> &mut PushBytes

Extracts mutable PushBytes slice

§

impl PushBytesBuf

pub fn len(&self) -> usize

Returns the number of bytes in buffer.

pub fn capacity(&self) -> usize

Returns the number of bytes the buffer can contain without reallocating.

pub fn is_empty(&self) -> bool

Returns true if the buffer contains zero bytes.

Methods from Deref<Target = PushBytes>§

pub fn as_bytes(&self) -> &[u8]

Returns the underlying bytes.

pub fn as_mut_bytes(&mut self) -> &mut [u8]

Returns the underlying mutbale bytes.

pub fn len(&self) -> usize

Returns the number of bytes in buffer.

pub fn is_empty(&self) -> bool

Returns true if the buffer contains zero bytes.

Trait Implementations§

§

impl AsMut<PushBytes> for PushBytesBuf

§

fn as_mut(&mut self) -> &mut PushBytes

Converts this type into a mutable reference of the (usually inferred) input type.
§

impl AsRef<PushBytes> for PushBytesBuf

§

fn as_ref(&self) -> &PushBytes

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Borrow<PushBytes> for PushBytesBuf

§

fn borrow(&self) -> &PushBytes

Immutably borrows from an owned value. Read more
§

impl BorrowMut<PushBytes> for PushBytesBuf

§

fn borrow_mut(&mut self) -> &mut PushBytes

Mutably borrows from an owned value. Read more
§

impl Clone for PushBytesBuf

§

fn clone(&self) -> PushBytesBuf

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for PushBytesBuf

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for PushBytesBuf

§

fn default() -> PushBytesBuf

Returns the “default value” for a type. Read more
§

impl Deref for PushBytesBuf

§

type Target = PushBytes

The resulting type after dereferencing.
§

fn deref(&self) -> &<PushBytesBuf as Deref>::Target

Dereferences the value.
§

impl DerefMut for PushBytesBuf

§

fn deref_mut(&mut self) -> &mut <PushBytesBuf as Deref>::Target

Mutably dereferences the value.
§

impl<'a> From<&'a [u8; 0]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 0]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 1]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 1]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 10]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 10]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 11]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 11]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 12]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 12]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 13]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 13]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 14]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 14]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 15]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 15]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 16]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 16]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 17]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 17]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 18]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 18]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 19]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 19]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 2]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 2]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 20]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 20]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 21]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 21]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 22]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 22]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 23]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 23]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 24]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 24]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 25]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 25]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 26]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 26]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 27]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 27]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 28]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 28]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 29]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 29]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 3]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 3]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 30]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 30]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 31]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 31]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 32]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 32]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 33]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 33]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 34]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 34]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 35]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 35]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 36]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 36]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 37]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 37]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 38]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 38]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 39]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 39]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 4]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 4]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 40]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 40]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 41]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 41]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 42]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 42]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 43]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 43]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 44]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 44]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 45]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 45]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 46]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 46]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 47]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 47]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 48]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 48]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 49]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 49]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 5]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 5]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 50]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 50]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 51]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 51]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 52]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 52]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 53]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 53]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 54]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 54]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 55]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 55]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 56]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 56]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 57]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 57]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 58]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 58]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 59]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 59]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 6]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 6]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 60]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 60]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 61]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 61]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 62]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 62]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 63]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 63]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 64]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 64]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 65]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 65]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 66]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 66]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 67]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 67]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 68]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 68]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 69]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 69]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 7]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 7]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 70]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 70]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 71]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 71]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 72]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 72]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 73]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 73]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 8]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 8]) -> PushBytesBuf

Converts to this type from the input type.
§

impl<'a> From<&'a [u8; 9]> for PushBytesBuf

§

fn from(bytes: &'a [u8; 9]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 0]> for PushBytesBuf

§

fn from(bytes: [u8; 0]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 1]> for PushBytesBuf

§

fn from(bytes: [u8; 1]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 10]> for PushBytesBuf

§

fn from(bytes: [u8; 10]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 11]> for PushBytesBuf

§

fn from(bytes: [u8; 11]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 12]> for PushBytesBuf

§

fn from(bytes: [u8; 12]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 13]> for PushBytesBuf

§

fn from(bytes: [u8; 13]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 14]> for PushBytesBuf

§

fn from(bytes: [u8; 14]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 15]> for PushBytesBuf

§

fn from(bytes: [u8; 15]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 16]> for PushBytesBuf

§

fn from(bytes: [u8; 16]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 17]> for PushBytesBuf

§

fn from(bytes: [u8; 17]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 18]> for PushBytesBuf

§

fn from(bytes: [u8; 18]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 19]> for PushBytesBuf

§

fn from(bytes: [u8; 19]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 2]> for PushBytesBuf

§

fn from(bytes: [u8; 2]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 20]> for PushBytesBuf

§

fn from(bytes: [u8; 20]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 21]> for PushBytesBuf

§

fn from(bytes: [u8; 21]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 22]> for PushBytesBuf

§

fn from(bytes: [u8; 22]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 23]> for PushBytesBuf

§

fn from(bytes: [u8; 23]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 24]> for PushBytesBuf

§

fn from(bytes: [u8; 24]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 25]> for PushBytesBuf

§

fn from(bytes: [u8; 25]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 26]> for PushBytesBuf

§

fn from(bytes: [u8; 26]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 27]> for PushBytesBuf

§

fn from(bytes: [u8; 27]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 28]> for PushBytesBuf

§

fn from(bytes: [u8; 28]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 29]> for PushBytesBuf

§

fn from(bytes: [u8; 29]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 3]> for PushBytesBuf

§

fn from(bytes: [u8; 3]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 30]> for PushBytesBuf

§

fn from(bytes: [u8; 30]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 31]> for PushBytesBuf

§

fn from(bytes: [u8; 31]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 32]> for PushBytesBuf

§

fn from(bytes: [u8; 32]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 33]> for PushBytesBuf

§

fn from(bytes: [u8; 33]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 34]> for PushBytesBuf

§

fn from(bytes: [u8; 34]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 35]> for PushBytesBuf

§

fn from(bytes: [u8; 35]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 36]> for PushBytesBuf

§

fn from(bytes: [u8; 36]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 37]> for PushBytesBuf

§

fn from(bytes: [u8; 37]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 38]> for PushBytesBuf

§

fn from(bytes: [u8; 38]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 39]> for PushBytesBuf

§

fn from(bytes: [u8; 39]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 4]> for PushBytesBuf

§

fn from(bytes: [u8; 4]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 40]> for PushBytesBuf

§

fn from(bytes: [u8; 40]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 41]> for PushBytesBuf

§

fn from(bytes: [u8; 41]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 42]> for PushBytesBuf

§

fn from(bytes: [u8; 42]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 43]> for PushBytesBuf

§

fn from(bytes: [u8; 43]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 44]> for PushBytesBuf

§

fn from(bytes: [u8; 44]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 45]> for PushBytesBuf

§

fn from(bytes: [u8; 45]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 46]> for PushBytesBuf

§

fn from(bytes: [u8; 46]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 47]> for PushBytesBuf

§

fn from(bytes: [u8; 47]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 48]> for PushBytesBuf

§

fn from(bytes: [u8; 48]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 49]> for PushBytesBuf

§

fn from(bytes: [u8; 49]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 5]> for PushBytesBuf

§

fn from(bytes: [u8; 5]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 50]> for PushBytesBuf

§

fn from(bytes: [u8; 50]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 51]> for PushBytesBuf

§

fn from(bytes: [u8; 51]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 52]> for PushBytesBuf

§

fn from(bytes: [u8; 52]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 53]> for PushBytesBuf

§

fn from(bytes: [u8; 53]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 54]> for PushBytesBuf

§

fn from(bytes: [u8; 54]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 55]> for PushBytesBuf

§

fn from(bytes: [u8; 55]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 56]> for PushBytesBuf

§

fn from(bytes: [u8; 56]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 57]> for PushBytesBuf

§

fn from(bytes: [u8; 57]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 58]> for PushBytesBuf

§

fn from(bytes: [u8; 58]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 59]> for PushBytesBuf

§

fn from(bytes: [u8; 59]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 6]> for PushBytesBuf

§

fn from(bytes: [u8; 6]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 60]> for PushBytesBuf

§

fn from(bytes: [u8; 60]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 61]> for PushBytesBuf

§

fn from(bytes: [u8; 61]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 62]> for PushBytesBuf

§

fn from(bytes: [u8; 62]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 63]> for PushBytesBuf

§

fn from(bytes: [u8; 63]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 64]> for PushBytesBuf

§

fn from(bytes: [u8; 64]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 65]> for PushBytesBuf

§

fn from(bytes: [u8; 65]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 66]> for PushBytesBuf

§

fn from(bytes: [u8; 66]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 67]> for PushBytesBuf

§

fn from(bytes: [u8; 67]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 68]> for PushBytesBuf

§

fn from(bytes: [u8; 68]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 69]> for PushBytesBuf

§

fn from(bytes: [u8; 69]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 7]> for PushBytesBuf

§

fn from(bytes: [u8; 7]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 70]> for PushBytesBuf

§

fn from(bytes: [u8; 70]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 71]> for PushBytesBuf

§

fn from(bytes: [u8; 71]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 72]> for PushBytesBuf

§

fn from(bytes: [u8; 72]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 73]> for PushBytesBuf

§

fn from(bytes: [u8; 73]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 8]> for PushBytesBuf

§

fn from(bytes: [u8; 8]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<[u8; 9]> for PushBytesBuf

§

fn from(bytes: [u8; 9]) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<PubkeyHash> for PushBytesBuf

§

fn from(hash: PubkeyHash) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<PushBytesBuf> for Vec<u8>

§

fn from(value: PushBytesBuf) -> Vec<u8>

Converts to this type from the input type.
§

impl From<ScriptHash> for PushBytesBuf

§

fn from(hash: ScriptHash) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<WPubkeyHash> for PushBytesBuf

§

fn from(hash: WPubkeyHash) -> PushBytesBuf

Converts to this type from the input type.
§

impl From<WScriptHash> for PushBytesBuf

§

fn from(hash: WScriptHash) -> PushBytesBuf

Converts to this type from the input type.
§

impl Hash for PushBytesBuf

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for PushBytesBuf

§

fn cmp(&self, other: &PushBytesBuf) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for PushBytesBuf

§

fn eq(&self, other: &PushBytesBuf) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for PushBytesBuf

§

fn partial_cmp(&self, other: &PushBytesBuf) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

impl TryFrom<Vec<u8>> for PushBytesBuf

§

type Error = PushBytesError

The type returned in the event of a conversion error.
§

fn try_from( vec: Vec<u8> ) -> Result<PushBytesBuf, <PushBytesBuf as TryFrom<Vec<u8>>>::Error>

Performs the conversion.
§

impl Eq for PushBytesBuf

§

impl StructuralPartialEq for PushBytesBuf

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V