pub struct Cursor<'a, 'find> { /* private fields */ }
Expand description
A way to constrain all tree-edits to a given subtree.
Implementations§
source§impl Cursor<'_, '_>
impl Cursor<'_, '_>
sourcepub fn upsert<I, C>(
&mut self,
rela_path: I,
kind: EntryKind,
id: ObjectId,
) -> Result<&mut Self, Error>
pub fn upsert<I, C>( &mut self, rela_path: I, kind: EntryKind, id: ObjectId, ) -> Result<&mut Self, Error>
Like Editor::upsert()
, but with the constraint of only editing in this cursor’s tree.
sourcepub fn remove<I, C>(&mut self, rela_path: I) -> Result<&mut Self, Error>
pub fn remove<I, C>(&mut self, rela_path: I) -> Result<&mut Self, Error>
Like Editor::remove()
, but with the constraint of only editing in this cursor’s tree.
Auto Trait Implementations§
impl<'a, 'find> Freeze for Cursor<'a, 'find>
impl<'a, 'find> !RefUnwindSafe for Cursor<'a, 'find>
impl<'a, 'find> !Send for Cursor<'a, 'find>
impl<'a, 'find> !Sync for Cursor<'a, 'find>
impl<'a, 'find> Unpin for Cursor<'a, 'find>
impl<'a, 'find> !UnwindSafe for Cursor<'a, 'find>
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