pub struct SplitFile {
pub path: PathBuf,
pub status: FileStatus,
pub whole_only: Option<WholeReason>,
pub hunks: Vec<Hunk>,
}Expand description
One file changed by the commit, numbered for splitting.
Fields§
§path: PathBuf§status: FileStatus§whole_only: Option<WholeReason>Some when the file can only be assigned whole; hunks is then empty.
hunks: Vec<Hunk>Trait Implementations§
Source§impl<'de> Deserialize<'de> for SplitFile
impl<'de> Deserialize<'de> for SplitFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SplitFile
impl StructuralPartialEq for SplitFile
Auto Trait Implementations§
impl Forget for SplitFile
impl Freeze for SplitFile
impl Move for SplitFile
impl RefUnwindSafe for SplitFile
impl Send for SplitFilewhere
RawVecInner: Send,
impl Sync for SplitFilewhere
RawVecInner: Sync,
impl Unpin for SplitFile
impl UnsafeUnpin for SplitFilewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Hunk>: UnsafeUnpin,
impl UnwindSafe for SplitFilewhere
RawVecInner: UnwindSafe,
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