pub enum Diff2Parameters<'a> {
Full {
from: &'a OsStr,
to: &'a OsStr,
},
To(&'a OsStr),
None,
}Expand description
File arguments of the DepotContent state’s BranchMode and
StreamMode sub-modes.
The prototype [[fromfile[rev]] tofile[rev]] allows either no file
arguments (Diff2Parameters::None), the target side only
(Diff2Parameters::To), or both sides (Diff2Parameters::Full).
Variants§
Full
Diff fromfile[rev] against tofile[rev].
To(&'a OsStr)
Diff the whole branch or stream, limited to the target side
tofile[rev].
None
Diff the whole branch or stream without limiting files.
Trait Implementations§
Source§impl<'a> Clone for Diff2Parameters<'a>
impl<'a> Clone for Diff2Parameters<'a>
impl<'a> Copy for Diff2Parameters<'a>
Source§impl<'a> Debug for Diff2Parameters<'a>
impl<'a> Debug for Diff2Parameters<'a>
impl<'a> Eq for Diff2Parameters<'a>
Source§impl<'a> PartialEq for Diff2Parameters<'a>
impl<'a> PartialEq for Diff2Parameters<'a>
impl<'a> StructuralPartialEq for Diff2Parameters<'a>
Auto Trait Implementations§
impl<'a> Freeze for Diff2Parameters<'a>
impl<'a> RefUnwindSafe for Diff2Parameters<'a>
impl<'a> Send for Diff2Parameters<'a>
impl<'a> Sync for Diff2Parameters<'a>
impl<'a> Unpin for Diff2Parameters<'a>
impl<'a> UnsafeUnpin for Diff2Parameters<'a>
impl<'a> UnwindSafe for Diff2Parameters<'a>
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