RFC PR 1398 proposes a trait for user-defined allocators. As part of the API, it proposes a helper type, named Kind, for describing the layout of a block of memory.
People have pointed out that the word "Kind" may end up confusing things if/when Rust adds support for "higher kinded types" (HKT).
@glaeboerhl has suggested that we rename "Kind" to something else, and proposed "Shape":
So, what do people think? I have no personal stake in the word "Kind"; I could also imagine other words. So here's a quick list:
I would name this Layout. The only misinterpretation I can think of is to assume it’s something to do with where in the address space it is, but the (size, alignment) members make it pretty clear what it’s for.
I’d be fine with Shape too, but it feels a little unnatural to me: It’s not a word I’d use when talking about allocators.