Skip to content

More scanners #3

Closed
Closed
@DanielKeep

Description

@DanielKeep

Ideas for more scanners.

Self scanners:

Abstract scanners:

  • Various for std::time::Duration - Duration doesn't have a very nice Debug representation (although it could be parsed). Would probably be nicer to just have scanners for various units of time (Seconds, Days, etc.). ISO 8601 is a bit ugly, but covers all the usual bases. If there's demand, shorthand f64 -> Duration scanners can be added.
  • HorizontalSpace - match any horizontal spaces: \x20, \t, etc., but not newlines or vertical tabs.
  • Newline - match any of \r, \r\n, \n.

Runtime scanners:

  • until(impl Pattern) - slice until a given std::str::pattern::Pattern matches.
  • pat(impl Pattern) - use str::starts_with. - impossible given current Pattern design.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions