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

Assert scoped view correctness #51

Closed
alexpovel opened this issue Oct 31, 2023 · 0 comments · Fixed by #53 · May be fixed by #170
Closed

Assert scoped view correctness #51

alexpovel opened this issue Oct 31, 2023 · 0 comments · Fixed by #53 · May be fixed by #170

Comments

@alexpovel
Copy link
Owner

On building a ScopedViewBuilder, assert that its constituents equal the original input.

Probably make it a hard assert, not a debug assert, as any bug there is a showstopper.

To be a hard assert, it needs to be cheap. For that, a cheap equality method is required (ScopedViewBuilder == &str).

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 a pull request may close this issue.

1 participant