Enum bitcoin_internals::script::PushDataLenLen
source · pub enum PushDataLenLen {
One = 1,
Two = 2,
Four = 4,
}
Expand description
The number of bytes used to encode an unsigned integer as the length of a push data instruction.
This makes it easier to prove correctness of next_push_data_len
and read_push_data_len
.
Variants§
One = 1
Unsigned integer comprising of a single byte.
Two = 2
Unsigned integer comprising of two bytes.
Four = 4
Unsigned integer comprising of four bytes.
Trait Implementations§
source§impl Clone for PushDataLenLen
impl Clone for PushDataLenLen
source§fn clone(&self) -> PushDataLenLen
fn clone(&self) -> PushDataLenLen
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PushDataLenLen
impl Debug for PushDataLenLen
source§impl Hash for PushDataLenLen
impl Hash for PushDataLenLen
source§impl Ord for PushDataLenLen
impl Ord for PushDataLenLen
source§fn cmp(&self, other: &PushDataLenLen) -> Ordering
fn cmp(&self, other: &PushDataLenLen) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PushDataLenLen
impl PartialEq for PushDataLenLen
source§impl PartialOrd for PushDataLenLen
impl PartialOrd for PushDataLenLen
impl Copy for PushDataLenLen
impl Eq for PushDataLenLen
impl StructuralPartialEq for PushDataLenLen
Auto Trait Implementations§
impl Freeze for PushDataLenLen
impl RefUnwindSafe for PushDataLenLen
impl Send for PushDataLenLen
impl Sync for PushDataLenLen
impl Unpin for PushDataLenLen
impl UnwindSafe for PushDataLenLen
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)