mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-10 21:56:42 +01:00
ughhh needs special case
This commit is contained in:
parent
cf1fd5b45a
commit
a362028ae7
4 changed files with 124 additions and 97 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue