use super::*;
use core::marker::PhantomData;
pub struct Empty<T, E>(E, PhantomData<T>);
impl<T, E> ListFn for Empty<T, E> {
type Item = T;
type End = E;
fn next(self) -> ListState<Self> {
ListState::End(self.0)
}
}
impl<T, E> Empty<T, E> {
pub fn new(e: E) -> Self {
Empty(e, PhantomData::default())
}
}