Enum sapio_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
sourceimpl Ord for Base
impl Ord for Base
sourceimpl PartialOrd<Base> for Base
impl PartialOrd<Base> for Base
sourcefn partial_cmp(&self, other: &Base) -> Option<Ordering>
fn partial_cmp(&self, other: &Base) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
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 · sourcefn 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 more
impl 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
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more