Add cache clearing to stop the memory leak (#1106)

* Add cache clearing

* Add TODO comment

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
0HyperCube
2023-04-09 23:30:57 +01:00
committed by Keavon Chambers
parent 9c4164291c
commit a58d51d685
4 changed files with 51 additions and 18 deletions

View File

@@ -34,6 +34,7 @@ pub use raster::Color;
pub trait Node<'i, Input: 'i>: 'i {
type Output: 'i;
fn eval<'s: 'i>(&'s self, input: Input) -> Self::Output;
fn reset(self: Pin<&mut Self>) {}
}
#[cfg(feature = "alloc")]