pub enum Relation {
Parent(ChangeId),
ChildOfParent(ChangeId),
}
Expand description
Identifies a relationship between this instance and another one.
Variants§
Parent(ChangeId)
This is a parent with the given ID, which will always have at least one child assuming that empty directories are not allowed in valid trees. It’s also always a tree which is the start of a recursive deletion or addition.
The change with this relation is always emitted first.
ChildOfParent(ChangeId)
This is a direct or indirect child, tree or not tree, of the parent with the given ID.
Trait Implementations§
source§impl Ord for Relation
impl Ord for Relation
source§impl PartialOrd for Relation
impl PartialOrd for Relation
impl Copy for Relation
impl Eq for Relation
impl StructuralPartialEq for Relation
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)