Skip to content

Reader#expect #8

@rapodaca

Description

@rapodaca

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!()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions