Skip to content

Commit c70eef5

Browse files
committed
Document GraphemeCursor a bit more
1 parent 907d4d0 commit c70eef5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/grapheme.rs

+3
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ enum GraphemeState {
165165
}
166166

167167
/// Cursor-based segmenter for grapheme clusters.
168+
///
169+
/// This allows working with ropes and other datastructures where the string is not contiguous or
170+
/// fully known at initialization time.
168171
#[derive(Clone, Debug)]
169172
pub struct GraphemeCursor {
170173
// Current cursor position.

0 commit comments

Comments
 (0)