pub fn caret(index: usize) -> Selection {
        Selection {
            anchor: index,
            active: index,
            h_pos: None,
        }
    }
/// Create a new caret (zero-length selection) at the provided UTF-8 byte index.
///
/// `index` must be a grapheme cluster boundary.
Create a new caret (zero-length selection) at the provided UTF-8 byte index.
`index` must be a grapheme cluster boundary.
Create a new caret ( zero - length selection ) at the provided UTF - 8 byte index . ` index ` must be a grapheme cluster boundary .
pub fn caret(index: usize) -> Selection {
        Selection {
            anchor: index,
            active: index,
            h_pos: None,
        }
    }
pub fn caret ( index : usize ) -> Selection { Selection { anchor : index , active : index , h_pos : None , } }
Create a new caret (zero-length selection) at the provided UTF-8 byte index.
Create a new caret ( zero - length selection ) at the provided UTF - 8 byte index .
index
usize
index
usize