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§
Source§impl<Pk: Clone + MiniscriptKey, Ctx: Clone + ScriptContext> Clone for Error<Pk, Ctx>
impl<Pk: Clone + MiniscriptKey, Ctx: Clone + ScriptContext> Clone for Error<Pk, Ctx>
Source§impl<Pk: Debug + MiniscriptKey, Ctx: Debug + ScriptContext> Debug for Error<Pk, Ctx>
impl<Pk: Debug + MiniscriptKey, Ctx: Debug + ScriptContext> Debug for Error<Pk, Ctx>
Source§impl<Pk: MiniscriptKey, Ctx: ScriptContext> Display for Error<Pk, Ctx>
impl<Pk: MiniscriptKey, Ctx: ScriptContext> Display for Error<Pk, Ctx>
Source§impl<Pk: MiniscriptKey, Ctx: ScriptContext> Error for Error<Pk, Ctx>
impl<Pk: MiniscriptKey, Ctx: ScriptContext> Error for Error<Pk, Ctx>
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<Pk: Hash + MiniscriptKey, Ctx: Hash + ScriptContext> Hash for Error<Pk, Ctx>
impl<Pk: Hash + MiniscriptKey, Ctx: Hash + ScriptContext> Hash for Error<Pk, Ctx>
Source§impl<Pk: Ord + MiniscriptKey, Ctx: Ord + ScriptContext> Ord for Error<Pk, Ctx>
impl<Pk: Ord + MiniscriptKey, Ctx: Ord + ScriptContext> Ord for Error<Pk, Ctx>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Pk: PartialEq + MiniscriptKey, Ctx: PartialEq + ScriptContext> PartialEq for Error<Pk, Ctx>
impl<Pk: PartialEq + MiniscriptKey, Ctx: PartialEq + ScriptContext> PartialEq for Error<Pk, Ctx>
Source§impl<Pk: PartialOrd + MiniscriptKey, Ctx: PartialOrd + ScriptContext> PartialOrd for Error<Pk, Ctx>
impl<Pk: PartialOrd + MiniscriptKey, Ctx: PartialOrd + ScriptContext> PartialOrd for Error<Pk, Ctx>
impl<Pk: Eq + MiniscriptKey, Ctx: Eq + ScriptContext> Eq for Error<Pk, Ctx>
impl<Pk: MiniscriptKey, Ctx: ScriptContext> StructuralPartialEq for Error<Pk, Ctx>
Auto Trait Implementations§
impl<Pk, Ctx> Freeze for Error<Pk, Ctx>
impl<Pk, Ctx> RefUnwindSafe for Error<Pk, Ctx>
impl<Pk, Ctx> Send for Error<Pk, Ctx>
impl<Pk, Ctx> Sync for Error<Pk, Ctx>
impl<Pk, Ctx> Unpin for Error<Pk, Ctx>
impl<Pk, Ctx> UnwindSafe for Error<Pk, Ctx>where
Pk: UnwindSafe + RefUnwindSafe,
<Pk as MiniscriptKey>::Hash: UnwindSafe + RefUnwindSafe,
Ctx: RefUnwindSafe,
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