pub fn select_word_at_caret(&mut self) -> bool {
        debug!("[compose_area] select_word_at_caret");

        if let Some(wac) = self.get_word_at_caret() {
            let node = wac.node();
            set_selection_range(
                &Position::Offset(&node, wac.start_offset()),
                Some(&Position::Offset(&node, wac.end_offset())),
            )
            .is_some()
        } else {
            false
        }
    }
/// Select the word (whitespace delimited) at the current caret position.
///
/// Note: This methods uses the range that was last set with
/// `store_selection_range`.
Select the word (whitespace delimited) at the current caret position.
Note: This methods uses the range that was last set with
`store_selection_range`.
Select the word ( whitespace delimited ) at the current caret position . Note : This methods uses the range that was last set with ` store_selection_range ` .
pub fn select_word_at_caret(&mut self) -> bool {
        debug!("[compose_area] select_word_at_caret");
        if let Some(wac) = self.get_word_at_caret() {
            let node = wac.node();
            set_selection_range(
                &Position::Offset(&node, wac.start_offset()),
                Some(&Position::Offset(&node, wac.end_offset())),
            )
            .is_some()
        } else {
            false
        }
    }
pub fn select_word_at_caret ( & mut self ) -> bool { debug ! ( " " ) ; if let Some ( wac ) = self . get_word_at_caret ( ) { let node = wac . node ( ) ; set_selection_range ( & Position :: Offset ( & node , wac . start_offset ( ) ) , Some ( & Position :: Offset ( & node , wac . end_offset ( ) ) ) , ) . is_some ( ) } else { false } }
Select the word (whitespace delimited) at the current caret position.
Select the word ( whitespace delimited ) at the current caret position .
&mut self
&mut self