uazu / qcell

Statically-checked alternatives to RefCell and RwLock
Apache License 2.0
356 stars 22 forks source link

Implement Hash for QCellOwnerID #40

Closed LegionMammal978 closed 1 year ago

LegionMammal978 commented 1 year ago

This allows a QCellOwnerID to be used as the key of a HashMap. There appears to be some demand for cell-owners-as-keys, e.g., in the guest_cell crate. This exposes the usize, but that shouldn't cause any soundness issue, since there's no sound way to convert it back to a QCellOwnerID.

uazu commented 1 year ago

Thanks. I'll do a release soonish