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