utkarshkukreti / select.rs

A Rust library to extract useful data from HTML documents, suitable for web scraping.
MIT License
971 stars 69 forks source link

`Debug` impls for certain structs #61

Closed phimuemue closed 1 year ago

phimuemue commented 4 years ago

I use select.rs for some of my projects, and sometimes I want to ensure that e.g. document.find(...) returns exactly one result.

In the error case, I would like to simply have something like println!("error: {:?}", result_of_document_find).

But Find does not impl Debug impl. I think it would be worth having this, so that one can easily debug-output these structs.

What do you think about this?