[−][src]Struct miniscript::miniscript::types::Error
Error type for typechecking
Fields
fragment: Terminal<Pk, Ctx>
The fragment that failed typecheck
error: ErrorKind
The reason that typechecking failed
Trait Implementations
impl<Pk: Clone + MiniscriptKey, Ctx: Clone + ScriptContext> Clone for Error<Pk, Ctx>
[src]
impl<Pk: Debug + MiniscriptKey, Ctx: Debug + ScriptContext> Debug for Error<Pk, Ctx>
[src]
impl<Pk: MiniscriptKey, Ctx: ScriptContext> Display for Error<Pk, Ctx>
[src]
impl<Pk: Eq + MiniscriptKey, Ctx: Eq + ScriptContext> Eq for Error<Pk, Ctx>
[src]
impl<Pk: MiniscriptKey, Ctx: ScriptContext> Error for Error<Pk, Ctx>
[src]
pub fn cause(&self) -> Option<&dyn Error>
[src]
pub fn description(&self) -> &str
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
impl<Pk: Hash + MiniscriptKey, Ctx: Hash + ScriptContext> Hash for Error<Pk, Ctx>
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<Pk: Ord + MiniscriptKey, Ctx: Ord + ScriptContext> Ord for Error<Pk, Ctx>
[src]
pub fn cmp(&self, other: &Error<Pk, Ctx>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<Pk: PartialEq + MiniscriptKey, Ctx: PartialEq + ScriptContext> PartialEq<Error<Pk, Ctx>> for Error<Pk, Ctx>
[src]
pub fn eq(&self, other: &Error<Pk, Ctx>) -> bool
[src]
pub fn ne(&self, other: &Error<Pk, Ctx>) -> bool
[src]
impl<Pk: PartialOrd + MiniscriptKey, Ctx: PartialOrd + ScriptContext> PartialOrd<Error<Pk, Ctx>> for Error<Pk, Ctx>
[src]
pub fn partial_cmp(&self, other: &Error<Pk, Ctx>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Error<Pk, Ctx>) -> bool
[src]
pub fn le(&self, other: &Error<Pk, Ctx>) -> bool
[src]
pub fn gt(&self, other: &Error<Pk, Ctx>) -> bool
[src]
pub fn ge(&self, other: &Error<Pk, Ctx>) -> bool
[src]
impl<Pk: MiniscriptKey, Ctx: ScriptContext> StructuralEq for Error<Pk, Ctx>
[src]
impl<Pk: MiniscriptKey, Ctx: ScriptContext> StructuralPartialEq for Error<Pk, Ctx>
[src]
Auto Trait Implementations
impl<Pk, Ctx> RefUnwindSafe for Error<Pk, Ctx> where
Ctx: RefUnwindSafe,
Pk: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash: RefUnwindSafe,
[src]
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,
[src]
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,
[src]
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,
[src]
Pk: Unpin,
<Pk as MiniscriptKey>::Hash: Unpin,
impl<Pk, Ctx> UnwindSafe for Error<Pk, Ctx> where
Ctx: RefUnwindSafe,
Pk: RefUnwindSafe + UnwindSafe,
<Pk as MiniscriptKey>::Hash: RefUnwindSafe + UnwindSafe,
[src]
Ctx: RefUnwindSafe,
Pk: RefUnwindSafe + UnwindSafe,
<Pk as MiniscriptKey>::Hash: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,