pub enum RowSelection {
None,
All,
Partial {
start: (LineSource, usize),
end: (LineSource, usize),
},
}Expand description
How far a selection extends within one row.
Variants§
None
Not selected at all.
All
Every source in the row is fully selected.
Partial
Runs from start to end, which may be in different sources.
This is the shape the first version got wrong: it could name only one source, so a boundary landing in the gutter left the rest of that row unselected. Dragging left and then up — which puts the start of the selection in a gutter — highlighted the nick and not the message, which reads as the selection being inverted.
Trait Implementations§
Source§impl Clone for RowSelection
impl Clone for RowSelection
impl Copy for RowSelection
Source§impl Debug for RowSelection
impl Debug for RowSelection
impl Eq for RowSelection
Source§impl PartialEq for RowSelection
impl PartialEq for RowSelection
impl StructuralPartialEq for RowSelection
Auto Trait Implementations§
impl Freeze for RowSelection
impl RefUnwindSafe for RowSelection
impl Send for RowSelection
impl Sync for RowSelection
impl Unpin for RowSelection
impl UnsafeUnpin for RowSelection
impl UnwindSafe for RowSelection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more