Enum miniscript::miniscript::satisfy::Witness
source · pub enum Witness<T> {
Stack(Vec<T>),
Unavailable,
Impossible,
}
Expand description
A witness, if available, for a Miniscript fragment
Variants§
Stack(Vec<T>)
Witness Available and the value of the witness
Third party can possibly satisfy the fragment but we cannot Witness Unavailable
Impossible
No third party can produce a satisfaction without private key Witness Impossible
Trait Implementations§
source§impl<Pk: MiniscriptKey> Ord for Witness<Placeholder<Pk>>
impl<Pk: MiniscriptKey> Ord for Witness<Placeholder<Pk>>
source§impl<T: PartialEq> PartialEq for Witness<T>
impl<T: PartialEq> PartialEq for Witness<T>
source§impl<Pk: MiniscriptKey> PartialOrd for Witness<Placeholder<Pk>>
impl<Pk: MiniscriptKey> PartialOrd for Witness<Placeholder<Pk>>
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<T: Eq> Eq for Witness<T>
impl<T> StructuralPartialEq for Witness<T>
Auto Trait Implementations§
impl<T> Freeze for Witness<T>
impl<T> RefUnwindSafe for Witness<T>where
T: RefUnwindSafe,
impl<T> Send for Witness<T>where
T: Send,
impl<T> Sync for Witness<T>where
T: Sync,
impl<T> Unpin for Witness<T>where
T: Unpin,
impl<T> UnwindSafe for Witness<T>where
T: UnwindSafe,
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