Enum miniscript::miniscript::types::ErrorKind
source · pub enum ErrorKind {
NonZeroDupIf,
LeftNotDissatisfiable,
RightNotDissatisfiable,
SwapNonOne,
NonZeroZero,
LeftNotUnit,
ChildBase1(Base),
ChildBase2(Base, Base),
ChildBase3(Base, Base, Base),
ThresholdBase(usize, Base),
ThresholdDissat(usize),
ThresholdNonUnit(usize),
}
Expand description
Detailed type of a typechecker error
Variants§
NonZeroDupIf
Passed a z
argument to a d
wrapper when z
was expected
LeftNotDissatisfiable
Many fragments (all disjunctions except or_i
as well as
andor
require their left child be dissatisfiable.
RightNotDissatisfiable
or_b
requires its right child be dissatisfiable
SwapNonOne
Tried to use the s:
modifier on a fragment that takes more
than one input
NonZeroZero
Tried to use the j:
(SIZE 0NOTEQUAL IF
) wrapper on something
that may be satisfied by a 0 input
LeftNotUnit
Many fragments require their left child to be a unit. This was not the case.
ChildBase1(Base)
Attempted to construct a wrapper, but the child had an invalid type
ChildBase2(Base, Base)
Attempted to construct a conjunction or disjunction, but the fragments’ children were of invalid types
ChildBase3(Base, Base, Base)
Attempted to construct an andor
but the fragments’
children were of invalid types
ThresholdBase(usize, Base)
The nth child of a threshold fragment had an invalid type (the
first must be B
and the rest W
s)
ThresholdDissat(usize)
The nth child of a threshold fragment did not have a unique satisfaction
ThresholdNonUnit(usize)
The nth child of a threshold fragment was not a unit
Trait Implementations§
source§impl Ord for ErrorKind
impl Ord for ErrorKind
source§impl PartialEq<ErrorKind> for ErrorKind
impl PartialEq<ErrorKind> for ErrorKind
source§impl PartialOrd<ErrorKind> for ErrorKind
impl PartialOrd<ErrorKind> for ErrorKind
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more