-
Notifications
You must be signed in to change notification settings - Fork 518
Description
Currently, crossbeam provides the following traits:
https://docs.rs/crossbeam/0.8.0/crossbeam/all.html
Some of these seem intended to be implemented for a particular type and not intended to be implemented by the user.
If I understand correctly, the traits below are not intended to be implemented by the user:
-
epoch::CompareAndSetOrdering
I don't think it makes sense to implement this other thanOrderingand(Ordering, Ordering).
EDIT: See Remove CompareAndSetOrdering trait and change compere_and_set to always use two orderings #621 -
epoch::Pointer
The document says it's a trait forOwnedandOwned.A trait for either
OwnedorOwnedpointers.
I would prefer to seal these traits using the sealed trait pattern described in API guidelines to prevent them from being accidentally implemented by the user. (Even if we never plan to make breaking changes to these APIs, I believe it's still worthwhile to prevent users from accidentally implementing these traits.)