[][src]Struct miniscript::miniscript::types::Error

pub struct Error<Pk: MiniscriptKey, Ctx: ScriptContext> {
    pub fragment: Terminal<Pk, Ctx>,
    pub error: ErrorKind,
}

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]

impl<Pk: Hash + MiniscriptKey, Ctx: Hash + ScriptContext> Hash for Error<Pk, Ctx>[src]

impl<Pk: Ord + MiniscriptKey, Ctx: Ord + ScriptContext> Ord for Error<Pk, Ctx>[src]

impl<Pk: PartialEq + MiniscriptKey, Ctx: PartialEq + ScriptContext> PartialEq<Error<Pk, Ctx>> for Error<Pk, Ctx>[src]

impl<Pk: PartialOrd + MiniscriptKey, Ctx: PartialOrd + ScriptContext> PartialOrd<Error<Pk, Ctx>> for Error<Pk, Ctx>[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]

impl<Pk, Ctx> Send for Error<Pk, Ctx> where
    Ctx: Send + Sync,
    Pk: Send + Sync,
    <Pk as MiniscriptKey>::Hash: Send + Sync
[src]

impl<Pk, Ctx> Sync for Error<Pk, Ctx> where
    Ctx: Send + Sync,
    Pk: Send + Sync,
    <Pk as MiniscriptKey>::Hash: Send + Sync
[src]

impl<Pk, Ctx> Unpin for Error<Pk, Ctx> where
    Pk: Unpin,
    <Pk as MiniscriptKey>::Hash: Unpin
[src]

impl<Pk, Ctx> UnwindSafe for Error<Pk, Ctx> where
    Ctx: RefUnwindSafe,
    Pk: RefUnwindSafe + UnwindSafe,
    <Pk as MiniscriptKey>::Hash: RefUnwindSafe + UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.