Implement image loding test

This commit is contained in:
Dennis
2022-08-13 19:15:48 +02:00
committed by Keavon Chambers
parent 7eb050092c
commit fa0b896825
9 changed files with 665 additions and 30 deletions

View File

@@ -58,3 +58,17 @@ where
(input, arg)
}
}
pub struct ConsPassInputNode<Root>(pub Root);
impl<'n, Root, L, R> Node<'n, (L, R)> for ConsPassInputNode<Root>
where
Root: Node<'n, R>,
{
type Output = (L, <Root as Node<'n, R>>::Output);
fn eval(&'n self, input: (L, R)) -> Self::Output {
let arg = self.0.eval(input.1);
(input.0, arg)
}
}