pub struct SelectionChange {
pub version: u32,
pub anchor: Position,
pub active: Position,
}Expand description
The selection of a code editor, as the Renderer reported it.
anchor is where the selection started and active where the caret is, so a selection
made backwards has the anchor after the active end. Both are read against version,
the same series CodeChange counts.
Fields§
§version: u32§anchor: Position§active: PositionImplementations§
Trait Implementations§
Source§impl Clone for SelectionChange
impl Clone for SelectionChange
impl Copy for SelectionChange
Source§impl Debug for SelectionChange
impl Debug for SelectionChange
impl Eq for SelectionChange
Source§impl PartialEq for SelectionChange
impl PartialEq for SelectionChange
impl StructuralPartialEq for SelectionChange
Auto Trait Implementations§
impl Freeze for SelectionChange
impl RefUnwindSafe for SelectionChange
impl Send for SelectionChange
impl Sync for SelectionChange
impl Unpin for SelectionChange
impl UnsafeUnpin for SelectionChange
impl UnwindSafe for SelectionChange
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