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.
Layoutis basically a wrapper aroundmem::size_ofandmem::align_of(batteries included) and should live in the same module. For compatibility,Layout(and its Error) have to be reexported tocore::alloc.NB: As the discussion just came up (#57), it would also be possible to rename
LayoutErrtoLayoutErrorincore::memand reexport it incore::allocasLayoutErr.