pub struct UndoHistorySelectionSet {
pub selections: Vec<Selection>,
pub primary_index: usize,
}Expand description
Persisted selection set state captured alongside undo/redo steps.
Fields§
§selections: Vec<Selection>All selections (primary + secondary); may include empty selections (carets).
primary_index: usizeIndex of the primary selection in selections.
Trait Implementations§
Source§impl Clone for UndoHistorySelectionSet
impl Clone for UndoHistorySelectionSet
Source§fn clone(&self) -> UndoHistorySelectionSet
fn clone(&self) -> UndoHistorySelectionSet
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 UndoHistorySelectionSet
impl Debug for UndoHistorySelectionSet
impl Eq for UndoHistorySelectionSet
Source§impl PartialEq for UndoHistorySelectionSet
impl PartialEq for UndoHistorySelectionSet
Source§fn eq(&self, other: &UndoHistorySelectionSet) -> bool
fn eq(&self, other: &UndoHistorySelectionSet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UndoHistorySelectionSet
Auto Trait Implementations§
impl Freeze for UndoHistorySelectionSet
impl RefUnwindSafe for UndoHistorySelectionSet
impl Send for UndoHistorySelectionSet
impl Sync for UndoHistorySelectionSet
impl Unpin for UndoHistorySelectionSet
impl UnsafeUnpin for UndoHistorySelectionSet
impl UnwindSafe for UndoHistorySelectionSet
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