Implement SpkIterator

SpkIterator was created with its own nth() and next() implementations
and its own new() and new_with_range() constructors.

Co-authored-by: 志宇 <hello@evanlinjin.me>
This commit is contained in:
Wei
2023-03-22 17:00:08 +08:00
committed by 志宇
parent 139e3d3802
commit 10fe32e6f1
3 changed files with 240 additions and 54 deletions

View File

@@ -43,6 +43,10 @@ pub use miniscript;
mod descriptor_ext;
#[cfg(feature = "miniscript")]
pub use descriptor_ext::DescriptorExt;
#[cfg(feature = "miniscript")]
mod spk_iter;
#[cfg(feature = "miniscript")]
pub use spk_iter::*;
#[allow(unused_imports)]
#[macro_use]