Struct sapio_miniscript::miniscript::types::Error
source · 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>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<Pk: Eq + MiniscriptKey, Ctx: Eq + ScriptContext> Eq for Error<Pk, Ctx>
impl<Pk: MiniscriptKey, Ctx: ScriptContext> StructuralEq for Error<Pk, Ctx>
impl<Pk: MiniscriptKey, Ctx: ScriptContext> StructuralPartialEq for Error<Pk, Ctx>
Auto Trait Implementations§
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
Ctx: RefUnwindSafe,
Pk: UnwindSafe + RefUnwindSafe,
<Pk as MiniscriptKey>::Hash: UnwindSafe + 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