tisonkun opened a new pull request, #352:
URL: https://github.com/apache/datasketches-rust/pull/352

   Closes #212.
   
   ### Motivation
   
   Following #232 (which added diagnostic `Debug` summaries for `HllSketch`, 
`CpcSketch`, and `CpcUnion`), most other sketches, filters, views, and set 
operators still derived `Debug`, dumping entire backing bit vectors, hash 
tables, or sample buffers on `{:?}` and imposing unnecessary `Debug` trait 
bounds on generic item, summary, and policy parameters. Several public types 
(`TDigest`, `ReqSketchIterator`, `SketchBytes`, `SketchSlice`, and mutable 
Theta/Tuple sketches, builders, unions, and intersections) were also missing 
`Debug` or `Clone`.
   
   ### Changes
   
   - Replace derived `Debug` implementations with concise diagnostic 
`fmt::Debug` summaries across `BloomFilter`, `XorFilter`, `CountMinSketch`, 
`FrequentItemsSketch`, `HllUnion`, `KllSketch`, `kll::SortedView`, `ReqSketch`, 
`req::SortedView`, `TDigestMut`, `ThetaSketch`, `CompactThetaSketch`, 
`ThetaSketchView`, `ThetaUnion`, `ThetaIntersection`, `TupleSketch`, 
`CompactTupleSketch`, `TupleSketchView`, `TupleUnion`, and `TupleIntersection`.
   - Implement `Debug` and `Clone` for `TDigest`, `ReqSketchIterator`, 
`SketchBytes`, and `SketchSlice` (plus `Default` for `SketchBytes`), and 
implement `Clone` for `ThetaSketch`, `ThetaSketchBuilder`, `ThetaUnion`, 
`ThetaIntersection`, `TupleSketch`, `TupleSketchBuilder`, `TupleUnion`, 
`TupleUnionBuilder`, and `TupleIntersection`.
   - Remove unnecessary `Debug` bounds on generic parameters for 
`FrequentItemsSketch<T>`, `ReqSketchIterator<'_, T>`, `TupleSketch<P>`, 
`CompactTupleSketch<S>`, `TupleSketchView<'_, S>`, `TupleUnion<P>`, 
`TupleIntersection<P>`, `DefaultUpdatePolicy<S>`, and `DefaultUnionPolicy<S>` 
(and relax `Copy`/`Clone`/`Default` bounds on the default Tuple policies).
   - Add integration tests in `tests-integration/tests/traits_test.rs` covering 
concise summary formatting, trait-bound guarantees with non-`Debug` types, and 
`Clone` independence.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to