File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 22
33use crate :: keys:: Keys ;
44use crate :: EntityRef ;
5+ use core:: fmt;
56use core:: marker:: PhantomData ;
67use cranelift_bitset:: CompoundBitSet ;
78
89/// A set of `K` for densely indexed entity references.
910///
1011/// The `EntitySet` data structure uses the dense index space to implement a set with a bitvector.
1112/// Like `SecondaryMap`, an `EntitySet` is used to associate secondary information with entities.
12- #[ derive( Debug , Clone , PartialEq , Eq ) ]
13+ #[ derive( Clone , PartialEq , Eq ) ]
1314#[ cfg_attr(
1415 feature = "enable-serde" ,
1516 derive( serde_derive:: Serialize , serde_derive:: Deserialize )
2223 unused : PhantomData < K > ,
2324}
2425
26+ impl < K : fmt:: Debug > fmt:: Debug for EntitySet < K >
27+ where
28+ K : EntityRef ,
29+ {
30+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
31+ f. debug_set ( ) . entries ( self . keys ( ) ) . finish ( )
32+ }
33+ }
34+
2535impl < K : EntityRef > Default for EntitySet < K > {
2636 fn default ( ) -> Self {
2737 Self {
You can’t perform that action at this time.
0 commit comments