pub enum KeylessDescriptorTree<Pk: MiniscriptKey> {
Key(Pk),
Threshold(Threshold<KeylessDescriptorTree<Pk>, 0>),
}Expand description
A tree can a key, or a threshold of trees
Variants§
Implementations§
Source§impl<Pk: MiniscriptKey> KeylessDescriptorTree<Pk>
impl<Pk: MiniscriptKey> KeylessDescriptorTree<Pk>
Sourcepub fn extract_keys(&self) -> Vec<Pk>
pub fn extract_keys(&self) -> Vec<Pk>
Returns a list of keys in the pruned descriptor
Trait Implementations§
Source§impl<Pk: Clone + MiniscriptKey> Clone for KeylessDescriptorTree<Pk>
impl<Pk: Clone + MiniscriptKey> Clone for KeylessDescriptorTree<Pk>
Source§fn clone(&self) -> KeylessDescriptorTree<Pk>
fn clone(&self) -> KeylessDescriptorTree<Pk>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Pk> Freeze for KeylessDescriptorTree<Pk>where
Pk: Freeze,
impl<Pk> RefUnwindSafe for KeylessDescriptorTree<Pk>where
Pk: RefUnwindSafe,
impl<Pk> Send for KeylessDescriptorTree<Pk>where
Pk: Send,
impl<Pk> Sync for KeylessDescriptorTree<Pk>where
Pk: Sync,
impl<Pk> Unpin for KeylessDescriptorTree<Pk>where
Pk: Unpin,
impl<Pk> UnsafeUnpin for KeylessDescriptorTree<Pk>where
Pk: UnsafeUnpin,
impl<Pk> UnwindSafe for KeylessDescriptorTree<Pk>where
Pk: 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