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
sourceimpl<Pk: Clone + MiniscriptKey, Ctx: Clone + ScriptContext> Clone for Error<Pk, Ctx>
impl<Pk: Clone + MiniscriptKey, Ctx: Clone + ScriptContext> Clone for Error<Pk, Ctx>
sourceimpl<Pk: Debug + MiniscriptKey, Ctx: Debug + ScriptContext> Debug for Error<Pk, Ctx>
impl<Pk: Debug + MiniscriptKey, Ctx: Debug + ScriptContext> Debug for Error<Pk, Ctx>
sourceimpl<Pk: MiniscriptKey, Ctx: ScriptContext> Display for Error<Pk, Ctx>
impl<Pk: MiniscriptKey, Ctx: ScriptContext> Display for Error<Pk, Ctx>
sourceimpl<Pk: MiniscriptKey, Ctx: ScriptContext> Error for Error<Pk, Ctx>
impl<Pk: MiniscriptKey, Ctx: ScriptContext> Error for Error<Pk, Ctx>
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl<Pk: Hash + MiniscriptKey, Ctx: Hash + ScriptContext> Hash for Error<Pk, Ctx>
impl<Pk: Hash + MiniscriptKey, Ctx: Hash + ScriptContext> Hash for Error<Pk, Ctx>
sourceimpl<Pk: Ord + MiniscriptKey, Ctx: Ord + ScriptContext> Ord for Error<Pk, Ctx>
impl<Pk: Ord + MiniscriptKey, Ctx: Ord + ScriptContext> Ord for Error<Pk, Ctx>
sourceimpl<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>
sourceimpl<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>
sourcefn partial_cmp(&self, other: &Error<Pk, Ctx>) -> Option<Ordering>
fn partial_cmp(&self, other: &Error<Pk, Ctx>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl<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> 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> Unpin for Error<Pk, Ctx> where
Pk: Unpin,
<Pk as MiniscriptKey>::Hash: Unpin,
impl<Pk, Ctx> UnwindSafe for Error<Pk, Ctx> where
Ctx: RefUnwindSafe,
Pk: UnwindSafe + RefUnwindSafe,
<Pk as MiniscriptKey>::Hash: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more