Struct ropey::segmentation::DefaultSegmenter
[−]
[src]
pub struct DefaultSegmenter {}
Ropey's default grapheme segmenter.
Uses the extended grapheme cluster rules specified in Unicode Standard Annex #29
Trait Implementations
impl Debug for DefaultSegmenter
[src]
impl Copy for DefaultSegmenter
[src]
impl Clone for DefaultSegmenter
[src]
fn clone(&self) -> DefaultSegmenter
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl GraphemeSegmenter for DefaultSegmenter
[src]
fn is_break(byte_idx: usize, text: &str) -> bool
[src]
Returns whether the given byte index in the given string is a grapheme cluster boundary. Read more
fn seam_is_break(left: &str, right: &str) -> bool
[src]
Returns true if the boundary between the two given strings is a grapheme cluster boundary, and false otherwise. Read more