Fill out some more docs

This commit is contained in:
grovesNL 2023-01-29 22:29:17 -03:30
parent 983d6b7eac
commit a3e035881b
4 changed files with 7 additions and 2 deletions

View file

@ -40,6 +40,7 @@ impl Cursor {
}
}
/// Whether to associate cursors placed at a boundary between runs with the run before or after it.
#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd)]
pub enum Affinity {
Before,
@ -78,6 +79,7 @@ impl Default for Affinity {
}
}
/// The position of a cursor within a [`Buffer`].
pub struct LayoutCursor {
pub line: usize,
pub layout: usize,