pub struct Saved {
pub written: Vec<SpecPath>,
pub removed: Vec<SpecPath>,
}Expand description
The files of the spec/ tree a save wrote and removed.
Fields§
§written: Vec<SpecPath>§removed: Vec<SpecPath>Implementations§
Source§impl Saved
impl Saved
Sourcepub fn between(current: &Files, next: &Files) -> Self
pub fn between(current: &Files, next: &Files) -> Self
What a save that turns the tree current into next writes and removes: each file whose
bytes differ, and each file the writer owns that next no longer has. A file the document
does not hold, such as lint.yaml, is never removed.
pub fn is_empty(&self) -> bool
Trait Implementations§
impl Eq for Saved
impl StructuralPartialEq for Saved
Auto Trait Implementations§
impl Freeze for Saved
impl RefUnwindSafe for Saved
impl Send for Saved
impl Sync for Saved
impl Unpin for Saved
impl UnsafeUnpin for Saved
impl UnwindSafe for Saved
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