Enum miniscript::miniscript::types::correctness::Input [−][src]
pub enum Input { Zero, One, Any, OneNonZero, AnyNonZero, }
Expand description
Type property representing expectations about how many inputs the fragment accepts, and assumptions about that
Variants
Consumes no stack elements under any circumstances
Consumes exactly one stack element under all circumstances
Consumes any number of stack elements
Consumes exactly one stack element. If the fragment is satisfied, this element must be nonzero.
Consumes 1 or more stack elements. If the fragment is
satisfied, the top element must be nonzero. (This property
cannot be applied to any type with a W
base.)
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Input
impl UnwindSafe for Input
Blanket Implementations
Mutably borrows from an owned value. Read more