Enum sapio_miniscript::ForEach
source · [−]pub enum ForEach<'a, Pk: MiniscriptKey + 'a> {
Key(&'a Pk),
Hash(&'a Pk::Hash),
}
Expand description
Either a key or a keyhash
Variants
Key(&'a Pk)
A key
Hash(&'a Pk::Hash)
A keyhash
Implementations
Auto Trait Implementations
impl<'a, Pk> RefUnwindSafe for ForEach<'a, Pk> where
Pk: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash: RefUnwindSafe,
impl<'a, Pk> Send for ForEach<'a, Pk> where
Pk: Sync,
<Pk as MiniscriptKey>::Hash: Sync,
impl<'a, Pk> Sync for ForEach<'a, Pk> where
Pk: Sync,
<Pk as MiniscriptKey>::Hash: Sync,
impl<'a, Pk> Unpin for ForEach<'a, Pk>
impl<'a, Pk> UnwindSafe for ForEach<'a, Pk> where
Pk: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash: 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