pub struct CaretPath {
pub steps: Vec<Step>,
pub index: usize,
}Expand description
A caret position that survives serialization and editor rebuilds.
Fields§
§steps: Vec<Step>Steps from the root sequence down to the caret’s sequence, empty for the root.
index: usizeGap index in that sequence, 0 is before the first item.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CaretPath
impl<'de> Deserialize<'de> for CaretPath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CaretPath
impl StructuralPartialEq for CaretPath
Auto Trait Implementations§
impl Freeze for CaretPath
impl RefUnwindSafe for CaretPath
impl Send for CaretPath
impl Sync for CaretPath
impl Unpin for CaretPath
impl UnsafeUnpin for CaretPath
impl UnwindSafe for CaretPath
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