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 new UnsafePhysFrame type and use it in Mapper::map_to #89

wants to merge 1 commit into
base: master


Copy link

phil-opp commented Aug 20, 2019

Fixes #88

This pull request adds a new UnsafePhysFrame type that wraps a PhysFrame. The type is unsafe to construct and the caller must guarantee that the frame is not mapped already. This type allows to make the map_to and identity_map methods of the Mapper trait safe. This PR also adjust the FrameAllocator to use the new type.

This is a breaking change.

@phil-opp phil-opp referenced this pull request Aug 20, 2019
gnzlbg approved these changes Aug 20, 2019
Copy link

gnzlbg left a comment


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.