Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reader#expect #8

Open
Tracked by #7
rapodaca opened this issue Nov 19, 2022 · 0 comments
Open
Tracked by #7

Reader#expect #8

rapodaca opened this issue Nov 19, 2022 · 0 comments

Comments

@rapodaca
Copy link

rapodaca commented Nov 19, 2022

Accepts a list of possible input sequences. Returns one of the following:

  1. Ok(None) if the first character doesn't match any of the target first characters.
  2. Ok(Some) if the full sequence matches one of those provided.
  3. Err(Error) if part of a full sequence was matched.
pub fn expect(
    &mut self,
    expected: &'a [&'a [Character]],
) -> Result<Option<&'a [Character]>, Error> {
    todo!()
}
@rapodaca rapodaca mentioned this issue Nov 19, 2022
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant