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

Add Pointer::starts_with and Pointer::ends_with #81

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

asmello
Copy link
Collaborator

@asmello asmello commented Oct 19, 2024

Long due! These are quite useful.

I initially named them is_suffix and is_prefix, but it turns out that's confusing to read (which is the prefix/suffix of which?). So I went with the std choice for the str counterparts.

@codecov-commenter
Copy link

codecov-commenter commented Oct 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.2%. Comparing base (b423489) to head (6503a68).
Report is 2 commits behind head on main.

Additional details and impacted files
Files with missing lines Coverage Δ
src/pointer.rs 98.2% <100.0%> (-0.1%) ⬇️

@asmello asmello requested a review from chanced October 19, 2024 09:45
@chanced chanced merged commit 7742c3b into chanced:main Oct 21, 2024
19 of 20 checks passed
@asmello asmello deleted the am/prefix branch October 21, 2024 15:59
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

Successfully merging this pull request may close these issues.

3 participants