8000 Move `Layout` and `LayoutErr` to `core::mem` · Issue #59 · rust-lang/wg-allocators · GitHub
[go: up one dir, main page]

Skip to content
Move Layout and LayoutErr to core::mem #59
@TimDiekmann

Description

@TimDiekmann

Layout is basically a wrapper around mem::size_of and mem::align_of (batteries included) and should live in the same module. For compatibility, Layout (and its Error) have to be reexported to core::alloc.

NB: As the discussion just came up (#57), it would also be possible to rename LayoutErr to LayoutError in core::mem and reexport it in core::alloc as LayoutErr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0