pub struct WorkspaceStatus {
pub base_epoch: EpochId,
pub dirty_files: Vec<PathBuf>,
pub is_stale: bool,
}Expand description
Detailed status information about a workspace.
Captures the current state of a workspace, including its epoch, whether it is stale, and which files have been modified.
Fields§
§base_epoch: EpochIdThe epoch this workspace is based on.
dirty_files: Vec<PathBuf>Paths to all dirty (modified) files in the working copy, relative to the workspace root.
is_stale: boolWhether this workspace is stale (behind the current repository epoch).
Implementations§
Source§impl WorkspaceStatus
impl WorkspaceStatus
Sourcepub const fn new(
base_epoch: EpochId,
dirty_files: Vec<PathBuf>,
is_stale: bool,
) -> Self
pub const fn new( base_epoch: EpochId, dirty_files: Vec<PathBuf>, is_stale: bool, ) -> Self
Create a new workspace status.
§Arguments
base_epoch- The epoch this workspace is based ondirty_files- List of modified file paths (relative to workspace root)is_stale- Whether the workspace is behind the current epoch
Sourcepub const fn dirty_count(&self) -> usize
pub const fn dirty_count(&self) -> usize
Returns the number of dirty files.
Trait Implementations§
Source§impl Clone for WorkspaceStatus
impl Clone for WorkspaceStatus
Source§fn clone(&self) -> WorkspaceStatus
fn clone(&self) -> WorkspaceStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkspaceStatus
impl Debug for WorkspaceStatus
Source§impl PartialEq for WorkspaceStatus
impl PartialEq for WorkspaceStatus
impl Eq for WorkspaceStatus
impl StructuralPartialEq for WorkspaceStatus
Auto Trait Implementations§
impl Freeze for WorkspaceStatus
impl RefUnwindSafe for WorkspaceStatus
impl Send for WorkspaceStatus
impl Sync for WorkspaceStatus
impl Unpin for WorkspaceStatus
impl UnsafeUnpin for WorkspaceStatus
impl UnwindSafe for WorkspaceStatus
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§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.