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 Support For Dynamically Sized Types #17

Merged
merged 4 commits into from
Mar 12, 2024
Merged

Add Support For Dynamically Sized Types #17

merged 4 commits into from
Mar 12, 2024

Conversation

ibraheemdev
Copy link
Owner

@ibraheemdev ibraheemdev commented Mar 12, 2024

This PR adds support for dynamically sized types by allowing links to be embedded directly instead of strictly through a Linked wrapper. Note that after this change, any generics are no longer implicitly wrapped in Linked<T>. For example, any instances of retire(ptr, reclaim::boxed::<T>) must be changed to retire(ptr, reclaim::boxed::<Linked<T>>). Fortunately, because of the new AsLink bounds, the previous example will result in a compiler error. However, any calls to link.cast() (previously calling Link::cast) will be silently converted to ptr.cast(), and need to be updated to account for the Linked wrapper.

Closes #8.

@ibraheemdev ibraheemdev merged commit 812c9b0 into master Mar 12, 2024
12 checks passed
@ibraheemdev ibraheemdev deleted the dst branch November 21, 2024 21:10
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.

DST Support
1 participant