pub enum Data {
Buffer,
TooLarge {
size: u64,
},
}
Expand description
Data as returned by Pipeline::convert_to_mergeable()
.
Variants§
Buffer
The data to use for merging was written into the buffer that was passed during the call to Pipeline::convert_to_mergeable()
.
TooLarge
The file or blob is above the big-file threshold and cannot be processed.
In this state, the file cannot be merged.
Fields
§
size: u64
The size of the object prior to performing any filtering or as it was found on disk.
Note that technically, the size isn’t always representative of the same ‘state’ of the content, as once it can be the size of the blob in git, and once it’s the size of file in the worktree - both can differ a lot depending on filters.
Trait Implementations§
Source§impl Ord for Data
impl Ord for Data
Source§impl PartialOrd for Data
impl PartialOrd for Data
impl Copy for Data
impl Eq for Data
impl StructuralPartialEq for Data
Auto Trait Implementations§
impl Freeze for Data
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
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