Created input types.

This commit is contained in:
Zachary Sunforge
2023-06-14 22:22:49 -07:00
parent 45ec03dfd1
commit a143ad0e54
4 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,10 @@
use crate::cell::CellView;
use crate::transducer::Stateful;
pub trait Poll<T: Copy> {
async fn poll() -> T;
}
pub struct StatefulInput<'a, T: Copy> {
pub state_cell: CellView<'a, T>,
}