#[non_exhaustive]pub struct ChangedPath {
pub status: char,
pub path: PathBuf,
pub old_path: Option<PathBuf>,
}Expand description
One entry from jj diff --summary: a single-letter status (M/A/D/…)
and the (forward-slash-normalised) path it applies to — the new path for a
rename/copy, with the original on old_path.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: charStatus letter (M modified, A added, D deleted, R renamed,
C copied).
path: PathBufThe path the status applies to — the new path for a rename/copy. A
PathBuf built from the raw jj diff --summary bytes, so a non-UTF-8
filename (legal on Unix) survives losslessly instead of being flattened to
U+FFFD — the same platform-correct type vcs_git::StatusEntry::path uses.
old_path: Option<PathBuf>For a rename (R) or copy (C), the original path; None otherwise.
Trait Implementations§
Source§impl Clone for ChangedPath
impl Clone for ChangedPath
Source§fn clone(&self) -> ChangedPath
fn clone(&self) -> ChangedPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChangedPath
impl Debug for ChangedPath
impl Eq for ChangedPath
Source§impl PartialEq for ChangedPath
impl PartialEq for ChangedPath
impl StructuralPartialEq for ChangedPath
Auto Trait Implementations§
impl Freeze for ChangedPath
impl RefUnwindSafe for ChangedPath
impl Send for ChangedPath
impl Sync for ChangedPath
impl Unpin for ChangedPath
impl UnsafeUnpin for ChangedPath
impl UnwindSafe for ChangedPath
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