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

Provide a Pattern-like API #34

Open
Nerixyz opened this issue Feb 18, 2023 · 0 comments
Open

Provide a Pattern-like API #34

Nerixyz opened this issue Feb 18, 2023 · 0 comments

Comments

@Nerixyz
Copy link

Nerixyz commented Feb 18, 2023

For Rust &str's, there is the standard library, there's the (still unstable) std::str::pattern::Pattern trait. It's used for methods like contains, starts_with, or matches.

This trait should be ported to work on types from this library (ideally, the trait from the standard library should allow different strings).

#1 requested string matching functions for the types exposed by this crate - Pattern would allow this by providing a std-like API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants