Struct miniscript::miniscript::types::Error [−][src]
pub struct Error<Pk: MiniscriptKey, Ctx: ScriptContext> { pub fragment: Terminal<Pk, Ctx>, pub error: ErrorKind, }
Expand description
Error type for typechecking
Fields
fragment: Terminal<Pk, Ctx>
The fragment that failed typecheck
error: ErrorKind
The reason that typechecking failed
Trait Implementations
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
The lower-level source of this error, if any. Read more
impl<Pk: PartialEq + MiniscriptKey, Ctx: PartialEq + ScriptContext> PartialEq<Error<Pk, Ctx>> for Error<Pk, Ctx>
impl<Pk: PartialEq + MiniscriptKey, Ctx: PartialEq + ScriptContext> PartialEq<Error<Pk, Ctx>> for Error<Pk, Ctx>
impl<Pk: PartialOrd + MiniscriptKey, Ctx: PartialOrd + ScriptContext> PartialOrd<Error<Pk, Ctx>> for Error<Pk, Ctx>
impl<Pk: PartialOrd + MiniscriptKey, Ctx: PartialOrd + ScriptContext> PartialOrd<Error<Pk, Ctx>> for Error<Pk, Ctx>
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<Pk, Ctx> RefUnwindSafe for Error<Pk, Ctx> where
Ctx: RefUnwindSafe,
Pk: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash: RefUnwindSafe,
impl<Pk, Ctx> Send for Error<Pk, Ctx> where
Ctx: Send + Sync,
Pk: Send + Sync,
<Pk as MiniscriptKey>::Hash: Send + Sync,
impl<Pk, Ctx> Sync for Error<Pk, Ctx> where
Ctx: Send + Sync,
Pk: Send + Sync,
<Pk as MiniscriptKey>::Hash: Send + Sync,
impl<Pk, Ctx> UnwindSafe for Error<Pk, Ctx> where
Ctx: RefUnwindSafe,
Pk: RefUnwindSafe + UnwindSafe,
<Pk as MiniscriptKey>::Hash: RefUnwindSafe + UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more