Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit87624ad

Browse files
authored
Merge pull request#98 from timClicks/add-debug-impls
Implement Debug for Graphemes (#95)
2 parents573b7bb +b4000ef commit87624ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/grapheme.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl<'a> DoubleEndedIterator for GraphemeIndices<'a> {
7373
///
7474
/// [`graphemes`]: trait.UnicodeSegmentation.html#tymethod.graphemes
7575
/// [`UnicodeSegmentation`]: trait.UnicodeSegmentation.html
76-
#[derive(Clone)]
76+
#[derive(Clone,Debug)]
7777
pubstructGraphemes<'a>{
7878
string:&'astr,
7979
cursor:GraphemeCursor,
@@ -148,7 +148,7 @@ pub fn new_grapheme_indices<'b>(s: &'b str, is_extended: bool) -> GraphemeIndice
148148

149149
// maybe unify with PairResult?
150150
// An enum describing information about a potential boundary.
151-
#[derive(PartialEq,Eq,Clone)]
151+
#[derive(PartialEq,Eq,Clone,Debug)]
152152
enumGraphemeState{
153153
// No information is known.
154154
Unknown,
@@ -165,7 +165,7 @@ enum GraphemeState {
165165
}
166166

167167
/// Cursor-based segmenter for grapheme clusters.
168-
#[derive(Clone)]
168+
#[derive(Clone,Debug)]
169169
pubstructGraphemeCursor{
170170
// Current cursor position.
171171
offset:usize,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp