Enum sapio_miniscript::ForEach [−][src]
Either a key or a keyhash
Variants
Key(&'a Pk)
A key
Hash(&'a Pk::Hash)
A keyhash
Implementations
impl<'a, Pk: MiniscriptKey<Hash = Pk>> ForEach<'a, Pk>
[src]
pub fn as_key(&self) -> &'a Pk
[src]
Convenience method to avoid distinguishing between keys and hashes when these are the same type
Auto Trait Implementations
impl<'a, Pk> RefUnwindSafe for ForEach<'a, Pk> where
Pk: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash: RefUnwindSafe,
Pk: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash: RefUnwindSafe,
impl<'a, Pk> Send for ForEach<'a, Pk> where
Pk: Sync,
<Pk as MiniscriptKey>::Hash: Sync,
Pk: Sync,
<Pk as MiniscriptKey>::Hash: Sync,
impl<'a, Pk> Sync for ForEach<'a, Pk> where
Pk: Sync,
<Pk as MiniscriptKey>::Hash: Sync,
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,
Pk: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash: RefUnwindSafe,
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, 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>,