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

Don't implement string types as vector wrappers #36

Merged
merged 12 commits into from
Oct 15, 2024
Merged

Conversation

bluurryy
Copy link
Owner

Currently strings are implemented as wrappers around their respective vector type.

If we instead implement string types as their own hierarchy, mirroring the vector types then we can reuse functions from BumpString to FixedBumpString up to BumpBox<str>.

We still want to have as_mut_vec for strings. We do that by making all vectors and strings #[repr(C)] so we can soundly transmute between them.

This PR also adds missing string methods.

@bluurryy bluurryy merged commit 21b5872 into main Oct 15, 2024
6 checks passed
@bluurryy bluurryy deleted the no-vec-in-string branch October 25, 2024 14:51
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.

1 participant