pub struct Selection {
pub start: Position,
pub end: Position,
pub mode: SelectionMode,
}Expand description
Selection in a buffer.
Fields§
§start: PositionStart position of the selection.
end: PositionEnd position of the selection.
mode: SelectionModeSelection mode (character, line, block).
Implementations§
Source§impl Selection
impl Selection
Trait Implementations§
impl Eq for Selection
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
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