Enum miniscript::miniscript::types::correctness::Base
source · pub enum Base {
B,
K,
V,
W,
}
Expand description
Basic type representing where the fragment can go
Variants§
B
Takes its inputs from the top of the stack. Pushes nonzero if the condition is satisfied. If not, if it does not abort, then 0 is pushed.
K
Takes its inputs from the top of the stack. Pushes a
public key, regardless of satisfaction, onto the stack.
Must be wrapped in c:
to turn into any other type.
V
Takes its inputs from the top of the stack, which must satisfy the condition (will abort otherwise). Does not push anything onto the stack.
W
Takes from the stack its inputs + element X at the top. If the inputs satisfy the condition, [nonzero X] or [X nonzero] is pushed. If not, if it does not abort, then [0 X] or [X 0] is pushed.
Trait Implementations§
source§impl Ord for Base
impl Ord for Base
source§impl PartialEq<Base> for Base
impl PartialEq<Base> for Base
source§impl PartialOrd<Base> for Base
impl PartialOrd<Base> for Base
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moreimpl Copy for Base
impl Eq for Base
impl StructuralEq for Base
impl StructuralPartialEq for Base
Auto Trait Implementations§
impl RefUnwindSafe for Base
impl Send for Base
impl Sync for Base
impl Unpin for Base
impl UnwindSafe for Base
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