pub struct SelectionSnapshot {
pub ranges: Vec<RangeSnapshot>,
pub primary_range: usize,
}Fields§
§ranges: Vec<RangeSnapshot>§primary_range: usizeImplementations§
Source§impl SelectionSnapshot
impl SelectionSnapshot
pub fn restore(&self, text: &Text) -> Option<SelectionState>
Auto Trait Implementations§
impl Freeze for SelectionSnapshot
impl RefUnwindSafe for SelectionSnapshot
impl Send for SelectionSnapshot
impl Sync for SelectionSnapshot
impl Unpin for SelectionSnapshot
impl UnsafeUnpin for SelectionSnapshot
impl UnwindSafe for SelectionSnapshot
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