pub fn next_boundary(&mut self) -> Option<usize> {
        if let Some(ch) = self.inner.next_codepoint() {
            let mut prop = get_word_property(ch);
            let mut candidate = self.inner.pos();
            while let Some(next) = self.inner.next_codepoint() {
                let prop_next = get_word_property(next);
                if classify_boundary(prop, prop_next).is_start() {
                    break;
                }
                prop = prop_next;
                candidate = self.inner.pos();
            }
            self.inner.set(candidate);
            return Some(candidate);
        }
        None
    }
/// Get next boundary, and set the cursor at the boundary found.
Get next boundary, and set the cursor at the boundary found.
Get next boundary and set the cursor at the boundary found .
pub fn next_boundary(&mut self) -> Option<usize> {
        if let Some(ch) = self.inner.next_codepoint() {
            let mut prop = get_word_property(ch);
            let mut candidate = self.inner.pos();
            while let Some(next) = self.inner.next_codepoint() {
                let prop_next = get_word_property(next);
                if classify_boundary(prop, prop_next).is_start() {
                    break;
                }
                prop = prop_next;
                candidate = self.inner.pos();
            }
            self.inner.set(candidate);
            return Some(candidate);
        }
        None
    }
pub fn next_boundary ( & mut self ) -> Option < usize > { if let Some ( ch ) = self . inner . next_codepoint ( ) { let mut prop = get_word_property ( ch ) ; let mut candidate = self . inner . pos ( ) ; while let Some ( next ) = self . inner . next_codepoint ( ) { let prop_next = get_word_property ( next ) ; if classify_boundary ( prop , prop_next ) . is_start ( ) { break ; } prop = prop_next ; candidate = self . inner . pos ( ) ; } self . inner . set ( candidate ) ; return Some ( candidate ) ; } None }
Get next boundary, and set the cursor at the boundary found.
Get next boundary and set the cursor at the boundary found .
&mut self
&mut self