We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents573b7bb +b4000ef commit87624adCopy full SHA for 87624ad
src/grapheme.rs
@@ -73,7 +73,7 @@ impl<'a> DoubleEndedIterator for GraphemeIndices<'a> {
73
///
74
/// [`graphemes`]: trait.UnicodeSegmentation.html#tymethod.graphemes
75
/// [`UnicodeSegmentation`]: trait.UnicodeSegmentation.html
76
-#[derive(Clone)]
+#[derive(Clone,Debug)]
77
pubstructGraphemes<'a>{
78
string:&'astr,
79
cursor:GraphemeCursor,
@@ -148,7 +148,7 @@ pub fn new_grapheme_indices<'b>(s: &'b str, is_extended: bool) -> GraphemeIndice
148
149
// maybe unify with PairResult?
150
// An enum describing information about a potential boundary.
151
-#[derive(PartialEq,Eq,Clone)]
+#[derive(PartialEq,Eq,Clone,Debug)]
152
enumGraphemeState{
153
// No information is known.
154
Unknown,
@@ -165,7 +165,7 @@ enum GraphemeState {
165
}
166
167
/// Cursor-based segmenter for grapheme clusters.
168
169
pubstructGraphemeCursor{
170
// Current cursor position.
171
offset:usize,