Struct dogear::ChangeGuid
source · [−]pub struct ChangeGuid<'t> {
pub merged_node: &'t MergedNode<'t>,
pub level: usize,
}
Expand description
A completion op to change the local GUID to the merged GUID. This is used to dedupe new local items to remote ones, as well as to fix up invalid GUIDs.
Fields
merged_node: &'t MergedNode<'t>
The merged node to update.
level: usize
The level of the node in the merged tree. Desktop uses this to ensure that GUID change observers are notified in level order (parents before children).
Implementations
sourceimpl<'t> ChangeGuid<'t>
impl<'t> ChangeGuid<'t>
sourcepub fn local_node(&self) -> &'t Node<'t>
pub fn local_node(&self) -> &'t Node<'t>
Returns the local node for this completion op. Panics if the local node
isn’t set, as we should never emit a ChangeGuid
op in that case.
Trait Implementations
sourceimpl<'t> Clone for ChangeGuid<'t>
impl<'t> Clone for ChangeGuid<'t>
sourcefn clone(&self) -> ChangeGuid<'t>
fn clone(&self) -> ChangeGuid<'t>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'t> Debug for ChangeGuid<'t>
impl<'t> Debug for ChangeGuid<'t>
sourceimpl<'t> Display for ChangeGuid<'t>
impl<'t> Display for ChangeGuid<'t>
impl<'t> Copy for ChangeGuid<'t>
Auto Trait Implementations
impl<'t> RefUnwindSafe for ChangeGuid<'t>
impl<'t> Send for ChangeGuid<'t>
impl<'t> Sync for ChangeGuid<'t>
impl<'t> Unpin for ChangeGuid<'t>
impl<'t> UnwindSafe for ChangeGuid<'t>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more