Starting a new iteration implementation.

This implementation will reduce the use of heap by elimininating Box<> from the individual iterators but it will still need heap for maintaining a vector of iterators from nodes.
This commit is contained in:
Tom Alexander 2023-09-27 13:48:17 -04:00
parent dd91e506bd
commit 35f058a354
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
4 changed files with 9 additions and 0 deletions

1
src/iter/ast_node.rs Normal file
View File

@ -0,0 +1 @@

View File

@ -0,0 +1,5 @@
use crate::types::Object;
pub struct BoldIter<'s> {
next: std::slice::Iter<'s, Object<'s>>,
}

2
src/iter/mod.rs Normal file
View File

@ -0,0 +1,2 @@
mod ast_node;
mod ast_node_iter;

View File

@ -8,6 +8,7 @@ pub mod compare;
mod context;
mod error;
mod iter;
pub mod parser;
pub mod types;