Add more Debug implementations

I generally like to implement Debug on these kind of types.
This commit is contained in:
John Nunley 2023-07-07 21:44:21 -07:00
parent 7d50d17369
commit 440d24ffa0
No known key found for this signature in database
GPG key ID: 42B2FA4582BB1EC9
15 changed files with 38 additions and 1 deletions

View file

@ -4,6 +4,7 @@ use unicode_bidi::{bidi_class, BidiClass, BidiInfo, ParagraphInfo};
/// An iterator over the paragraphs in the input text.
/// It is equivalent to [`core::str::Lines`] but follows `unicode-bidi` behaviour.
#[derive(Debug)]
pub struct BidiParagraphs<'text> {
text: &'text str,
info: alloc::vec::IntoIter<ParagraphInfo>,