pub struct CursorSnapshot {
pub byte_index: Anchor,
}Fields§
§byte_index: AnchorImplementations§
Source§impl CursorSnapshot
impl CursorSnapshot
pub fn restore(&self, text: &Text) -> Option<CursorState>
Auto Trait Implementations§
impl Freeze for CursorSnapshot
impl RefUnwindSafe for CursorSnapshot
impl Send for CursorSnapshot
impl Sync for CursorSnapshot
impl Unpin for CursorSnapshot
impl UnsafeUnpin for CursorSnapshot
impl UnwindSafe for CursorSnapshot
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