pub struct All { /* private fields */ }
Expand description
A script Opcode.
Implementations§
Trait Implementations§
source§impl From<WitnessVersion> for All
impl From<WitnessVersion> for All
source§fn from(version: WitnessVersion) -> All
fn from(version: WitnessVersion) -> All
Converts WitnessVersion
instance into corresponding Bitcoin scriptopcode (OP_0
..OP_16
).
source§impl TryFrom<All> for WitnessVersion
impl TryFrom<All> for WitnessVersion
source§fn try_from(opcode: All) -> Result<Self, Self::Error>
fn try_from(opcode: All) -> Result<Self, Self::Error>
Converts bitcoin script opcode into WitnessVersion
variant.
Returns
Version of the Witness program (for opcodes in range of OP_0
..OP_16
).
Errors
If the opcode does not correspond to any witness version, errors with
Error::MalformedWitnessVersion
.
impl Copy for All
impl Eq for All
impl StructuralEq for All
impl StructuralPartialEq for All
Auto Trait Implementations§
impl RefUnwindSafe for All
impl Send for All
impl Sync for All
impl Unpin for All
impl UnwindSafe for All
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