ughhh needs special case

This commit is contained in:
🪞👃🪞 2025-01-18 16:03:06 +01:00
parent cf1fd5b45a
commit a362028ae7
4 changed files with 124 additions and 97 deletions

View file

@ -1,5 +1,5 @@
use crate::*;
#[derive(Copy, Clone, Debug, PartialEq)] pub struct TokenIter<'a>(pub &'a str);
#[derive(Copy, Clone, Debug, Default, PartialEq)] pub struct TokenIter<'a>(pub &'a str);
const_iter!(<'a>|self: TokenIter<'a>| => Token<'a> => self.next_mut().map(|(result, _)|result));
impl<'a> From<&'a str> for TokenIter<'a> {fn from (source: &'a str) -> Self{Self::new(source)}}
impl<'a> TokenIter<'a> {