Skip to content

Provide a into_raw and from_raw API? #151

@FreeMasen

Description

@FreeMasen

I am curious if you would be willing to support a new pair of APIs similar to Box::into_raw/Box::from_raw?

To support for using this crate to back an Allocator, which is expected to provide/accept NonNull<[u8]>, it would be really nice to be able to convert either a Mmap or MmapMut into a NonNull<[u8]> or (MmapRawDescriptor, NonNull<[u8]>) which would disable the Drop implementation but allow for re-constructing from those parts to opt back into the Drop semantics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions