Enum miniscript::miniscript::lex::Token
source · [−]pub enum Token {
Show 29 variants
BoolAnd,
BoolOr,
Add,
Equal,
CheckSig,
CheckMultiSig,
CheckSequenceVerify,
CheckLockTimeVerify,
FromAltStack,
ToAltStack,
Drop,
Dup,
If,
IfDup,
NotIf,
Else,
EndIf,
ZeroNotEqual,
Size,
Swap,
Verify,
Ripemd160,
Hash160,
Sha256,
Hash256,
Num(u32),
Hash20([u8; 20]),
Hash32([u8; 32]),
Pubkey(PublicKey),
}
Expand description
Atom of a tokenized version of a script
Variants
BoolAnd
BoolOr
Add
Equal
CheckSig
CheckMultiSig
CheckSequenceVerify
CheckLockTimeVerify
FromAltStack
ToAltStack
Drop
Dup
If
IfDup
NotIf
Else
EndIf
ZeroNotEqual
Size
Swap
Verify
Ripemd160
Hash160
Sha256
Hash256
Num(u32)
Hash20([u8; 20])
Hash32([u8; 32])
Pubkey(PublicKey)
Trait Implementations
impl Copy for Token
impl Eq for Token
impl StructuralEq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more