#[repr(C)]pub struct SelectionState {
pub selections: SelectionVec,
pub node_id: DomNodeId,
}Expand description
The complete selection state for a single text block, supporting multiple cursors/ranges.
Fields§
§selections: SelectionVecA list of all active selections. This list is kept sorted and non-overlapping.
node_id: DomNodeIdThe DOM node this selection state applies to.
Implementations§
Trait Implementations§
Source§impl Clone for SelectionState
impl Clone for SelectionState
Source§fn clone(&self) -> SelectionState
fn clone(&self) -> SelectionState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelectionState
impl Debug for SelectionState
Source§impl PartialEq for SelectionState
impl PartialEq for SelectionState
Source§fn eq(&self, other: &SelectionState) -> bool
fn eq(&self, other: &SelectionState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SelectionState
Auto Trait Implementations§
impl Freeze for SelectionState
impl RefUnwindSafe for SelectionState
impl Send for SelectionState
impl Sync for SelectionState
impl Unpin for SelectionState
impl UnsafeUnpin for SelectionState
impl UnwindSafe for SelectionState
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