pub type Caret = Position<Vec<usize>>;Expand description
Where a caret stood: a paragraph’s path under the root the view draws, and a character offset into its text.
Aliased Type§
pub struct Caret {
pub paragraph: Vec<usize>,
pub offset: usize,
}Fields§
§paragraph: Vec<usize>The paragraph, as the model names it.
offset: usizeCharacters from the start of the paragraph’s text.