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

Owned, growable counterpart to PushBytes.

Implementations§

source§

impl PushBytesBuf

source

pub fn new() -> Self

Creates a new empty PushBytesBuf.

source

pub fn with_capacity(capacity: usize) -> Self

Creates a new empty PushBytesBuf with reserved capacity.

source

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

Reserve capacity for additional_capacity bytes.

source

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

Try pushing a single byte.

Errors

This method fails if self would exceed the limit.

source

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.

source

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

Remove the last byte from buffer if any.

source

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.

source

pub fn clear(&mut self)

Remove all bytes from buffer without affecting capacity.

source

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

Remove bytes from buffer past len.

source

pub fn as_push_bytes(&self) -> &PushBytes

Extracts PushBytes slice

source

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

Extracts mutable PushBytes slice

source§

impl PushBytesBuf

source

pub fn len(&self) -> usize

Returns the number of bytes in buffer.

source

pub fn capacity(&self) -> usize

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

source

pub fn is_empty(&self) -> bool

Returns true if the buffer contains zero bytes.

Methods from Deref<Target = PushBytes>§

source

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

Returns the underlying bytes.

source

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

Returns the underlying mutbale bytes.

source

pub fn len(&self) -> usize

Returns the number of bytes in buffer.

source

pub fn is_empty(&self) -> bool

Returns true if the buffer contains zero bytes.

Trait Implementations§

source§

impl AsMut<PushBytes> for PushBytesBuf

source§

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

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

impl AsRef<PushBytes> for PushBytesBuf

source§

fn as_ref(&self) -> &PushBytes

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

impl Borrow<PushBytes> for PushBytesBuf

source§

fn borrow(&self) -> &PushBytes

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<PushBytes> for PushBytesBuf

source§

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

Mutably borrows from an owned value. Read more
source§

impl Clone for PushBytesBuf

source§

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

impl Debug for PushBytesBuf

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for PushBytesBuf

source§

fn default() -> PushBytesBuf

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

impl Deref for PushBytesBuf

§

type Target = PushBytes

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for PushBytesBuf

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 0]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 1]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 10]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 11]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 12]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 13]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 14]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 15]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 16]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 17]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 18]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 19]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 2]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 20]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 21]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 22]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 23]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 24]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 25]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 26]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 27]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 28]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 29]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 3]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 30]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 31]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 32]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 33]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 34]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 35]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 36]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 37]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 38]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 39]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 4]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 40]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 41]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 42]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 43]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 44]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 45]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 46]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 47]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 48]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 49]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 5]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 50]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 51]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 52]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 53]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 54]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 55]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 56]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 57]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 58]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 59]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 6]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 60]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 61]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 62]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 63]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 64]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 65]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 66]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 67]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 68]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 69]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 7]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 70]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 71]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 72]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 73]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 8]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 9]> for PushBytesBuf

source§

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

Converts to this type from the input type.
source§

impl From<PubkeyHash> for PushBytesBuf

source§

fn from(hash: PubkeyHash) -> Self

Converts to this type from the input type.
source§

impl From<PushBytesBuf> for Vec<u8>

source§

fn from(value: PushBytesBuf) -> Self

Converts to this type from the input type.
source§

impl From<ScriptHash> for PushBytesBuf

source§

fn from(hash: ScriptHash) -> Self

Converts to this type from the input type.
source§

impl From<WPubkeyHash> for PushBytesBuf

source§

fn from(hash: WPubkeyHash) -> Self

Converts to this type from the input type.
source§

impl From<WScriptHash> for PushBytesBuf

source§

fn from(hash: WScriptHash) -> Self

Converts to this type from the input type.
source§

impl Hash for PushBytesBuf

source§

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

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

impl Ord for PushBytesBuf

source§

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) -> Selfwhere Self: Sized,

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

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

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

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

Restrict a value to a certain interval. Read more
source§

impl PartialEq<PushBytesBuf> for PushBytesBuf

source§

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.
source§

impl PartialOrd<PushBytesBuf> for PushBytesBuf

source§

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

impl TryFrom<Vec<u8, Global>> for PushBytesBuf

§

type Error = PushBytesError

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

fn try_from(vec: Vec<u8>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Eq for PushBytesBuf

source§

impl StructuralEq for PushBytesBuf

source§

impl StructuralPartialEq for PushBytesBuf

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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 Twhere 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 Twhere 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 Twhere 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.