pub struct FsDelta {
pub changed: Vec<PathBuf>,
pub removed: Vec<PathBuf>,
}Expand description
The paths that changed between two polls of the issues tree.
Every path is relative to the watched root, in the same form
crate::model::Issue::filename uses: <segment>/<name>.md for a grouped
issue, <name>.md for a legacy flat file (plus the directory paths that
contain them).
Fields§
§changed: Vec<PathBuf>Paths that appeared or whose signature changed.
removed: Vec<PathBuf>Paths that disappeared.
Implementations§
Source§impl FsDelta
impl FsDelta
Sourcepub fn merge(&mut self, next: FsDelta)
pub fn merge(&mut self, next: FsDelta)
Fold next into self, keeping each path in at most one list.
A path can move between the two lists across ticks (a file added and then removed while a burst is still settling); the later observation wins, because that is the one that describes the tree as it is now.
Trait Implementations§
impl Eq for FsDelta
impl StructuralPartialEq for FsDelta
Auto Trait Implementations§
impl Freeze for FsDelta
impl RefUnwindSafe for FsDelta
impl Send for FsDelta
impl Sync for FsDelta
impl Unpin for FsDelta
impl UnsafeUnpin for FsDelta
impl UnwindSafe for FsDelta
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more