Fill out some more docs
This commit is contained in:
parent
983d6b7eac
commit
a3e035881b
4 changed files with 7 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue