Skip to content

Throw stream errors #323

Description

@ark0f

I have stream of tokens. Token is enum like:

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions