pub struct Error<Pk: MiniscriptKey, Ctx: ScriptContext, Ext: Extension = NoExt> {
pub fragment: Terminal<Pk, Ctx, Ext>,
pub error: ErrorKind,
}
Expand description
Error type for typechecking
Fields§
§fragment: Terminal<Pk, Ctx, Ext>
The fragment that failed typecheck
error: ErrorKind
The reason that typechecking failed
Trait Implementations§
Source§impl<Pk: Clone + MiniscriptKey, Ctx: Clone + ScriptContext, Ext: Clone + Extension> Clone for Error<Pk, Ctx, Ext>
impl<Pk: Clone + MiniscriptKey, Ctx: Clone + ScriptContext, Ext: Clone + Extension> Clone for Error<Pk, Ctx, Ext>
Source§impl<Pk: Debug + MiniscriptKey, Ctx: Debug + ScriptContext, Ext: Debug + Extension> Debug for Error<Pk, Ctx, Ext>
impl<Pk: Debug + MiniscriptKey, Ctx: Debug + ScriptContext, Ext: Debug + Extension> Debug for Error<Pk, Ctx, Ext>
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
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · 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, Ext: Hash + Extension> Hash for Error<Pk, Ctx, Ext>
impl<Pk: Hash + MiniscriptKey, Ctx: Hash + ScriptContext, Ext: Hash + Extension> Hash for Error<Pk, Ctx, Ext>
Source§impl<Pk: Ord + MiniscriptKey, Ctx: Ord + ScriptContext, Ext: Ord + Extension> Ord for Error<Pk, Ctx, Ext>
impl<Pk: Ord + MiniscriptKey, Ctx: Ord + ScriptContext, Ext: Ord + Extension> Ord for Error<Pk, Ctx, Ext>
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, Ext: PartialEq + Extension> PartialEq for Error<Pk, Ctx, Ext>
impl<Pk: PartialEq + MiniscriptKey, Ctx: PartialEq + ScriptContext, Ext: PartialEq + Extension> PartialEq for Error<Pk, Ctx, Ext>
Source§impl<Pk: PartialOrd + MiniscriptKey, Ctx: PartialOrd + ScriptContext, Ext: PartialOrd + Extension> PartialOrd for Error<Pk, Ctx, Ext>
impl<Pk: PartialOrd + MiniscriptKey, Ctx: PartialOrd + ScriptContext, Ext: PartialOrd + Extension> PartialOrd for Error<Pk, Ctx, Ext>
impl<Pk: Eq + MiniscriptKey, Ctx: Eq + ScriptContext, Ext: Eq + Extension> Eq for Error<Pk, Ctx, Ext>
impl<Pk: MiniscriptKey, Ctx: ScriptContext, Ext: Extension> StructuralPartialEq for Error<Pk, Ctx, Ext>
Auto Trait Implementations§
impl<Pk, Ctx, Ext> Freeze for Error<Pk, Ctx, Ext>where
Pk: Freeze,
<Pk as MiniscriptKey>::Sha256: Freeze,
<Pk as MiniscriptKey>::Hash256: Freeze,
<Pk as MiniscriptKey>::Ripemd160: Freeze,
<Pk as MiniscriptKey>::Hash160: Freeze,
Ext: Freeze,
impl<Pk, Ctx, Ext> RefUnwindSafe for Error<Pk, Ctx, Ext>where
Pk: RefUnwindSafe,
<Pk as MiniscriptKey>::Sha256: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash256: RefUnwindSafe,
<Pk as MiniscriptKey>::Ripemd160: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash160: RefUnwindSafe,
Ext: RefUnwindSafe,
Ctx: RefUnwindSafe,
impl<Pk, Ctx, Ext> Send for Error<Pk, Ctx, Ext>
impl<Pk, Ctx, Ext> Sync for Error<Pk, Ctx, Ext>
impl<Pk, Ctx, Ext> Unpin for Error<Pk, Ctx, Ext>where
Pk: Unpin,
<Pk as MiniscriptKey>::Sha256: Unpin,
<Pk as MiniscriptKey>::Hash256: Unpin,
<Pk as MiniscriptKey>::Ripemd160: Unpin,
<Pk as MiniscriptKey>::Hash160: Unpin,
Ext: Unpin,
impl<Pk, Ctx, Ext> UnwindSafe for Error<Pk, Ctx, Ext>where
Pk: UnwindSafe + RefUnwindSafe,
<Pk as MiniscriptKey>::Sha256: UnwindSafe + RefUnwindSafe,
<Pk as MiniscriptKey>::Hash256: UnwindSafe + RefUnwindSafe,
<Pk as MiniscriptKey>::Ripemd160: UnwindSafe + RefUnwindSafe,
<Pk as MiniscriptKey>::Hash160: UnwindSafe + RefUnwindSafe,
Ext: 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