slotmap icon indicating copy to clipboard operation
slotmap copied to clipboard

Make KeyData::from_ffi const

Open joshleeb opened this issue 1 year ago • 0 comments

This change updates KeyData::from_ffi to be const.

Although the common use case is for keys to be created only when inserting into a SlotMap, creating a key independent of a map can be useful for testing. Having a way to construct KeyData in a const context makes it more convenient to setup these fake keys for tests.

Related to #85

joshleeb avatar Jan 24 '25 07:01 joshleeb