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:
parent
dd91e506bd
commit
35f058a354
1
src/iter/ast_node.rs
Normal file
1
src/iter/ast_node.rs
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
5
src/iter/ast_node_iter.rs
Normal file
5
src/iter/ast_node_iter.rs
Normal 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
2
src/iter/mod.rs
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
mod ast_node;
|
||||||
|
mod ast_node_iter;
|
@ -8,6 +8,7 @@ pub mod compare;
|
|||||||
|
|
||||||
mod context;
|
mod context;
|
||||||
mod error;
|
mod error;
|
||||||
|
mod iter;
|
||||||
pub mod parser;
|
pub mod parser;
|
||||||
pub mod types;
|
pub mod types;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user