I have stream of tokens. Token is enum like: ```rust enum Token { Error, Num, Str, ... } ``` `StreamOnce::uncons` documentation: `Returns Err if no element could be retrieved.` How I can throw error when I have `Token::Error`?
I have stream of tokens. Token is enum like:
StreamOnce::unconsdocumentation:Returns Err if no element could be retrieved.How I can throw error when I have
Token::Error?