pub struct SelectionsChange {
pub version: u32,
pub selections: Vec<(Position, Position)>,
}Expand description
Every selection of a code editor, as the Renderer reported it: sent while there is more
than one, and once more when it comes back to one. The first is the primary selection,
the one SelectionChange goes on reporting by itself.
Fields§
§version: u32§selections: Vec<(Position, Position)>Each an anchor and an active end.
Implementations§
Source§impl SelectionsChange
impl SelectionsChange
Sourcepub fn from_payload(payload: &EventPayload<'_>) -> Option<Self>
pub fn from_payload(payload: &EventPayload<'_>) -> Option<Self>
The selections a SelectionsChanged event carries, or None for any other event.
Trait Implementations§
Source§impl Clone for SelectionsChange
impl Clone for SelectionsChange
Source§impl Debug for SelectionsChange
impl Debug for SelectionsChange
impl Eq for SelectionsChange
Source§impl PartialEq for SelectionsChange
impl PartialEq for SelectionsChange
impl StructuralPartialEq for SelectionsChange
Auto Trait Implementations§
impl Forget for SelectionsChange
impl Freeze for SelectionsChange
impl Move for SelectionsChange
impl RefUnwindSafe for SelectionsChange
impl Send for SelectionsChange
impl Sync for SelectionsChange
impl Unpin for SelectionsChange
impl UnsafeUnpin for SelectionsChange
impl UnwindSafe for SelectionsChange
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