pub enum Data<'a> {
Missing,
Buffer(&'a [u8]),
TooLarge {
size: u64,
},
}
Expand description
The data of a mergeable resource, as it could be determined and computed previously.
Variants§
Missing
The object is missing, either because it didn’t exist in the working tree or because its id
was null.
Such data equals an empty buffer.
Buffer(&'a [u8])
The textual data as processed and ready for merging, i.e. suitable for storage in Git.
TooLarge
The file or blob is above the big-file threshold and cannot be processed.
In this state, the file cannot be merged.
Implementations§
Trait Implementations§
Source§impl<'a> Ord for Data<'a>
impl<'a> Ord for Data<'a>
Source§impl<'a> PartialOrd for Data<'a>
impl<'a> PartialOrd for Data<'a>
impl<'a> Copy for Data<'a>
impl<'a> Eq for Data<'a>
impl<'a> StructuralPartialEq for Data<'a>
Auto Trait Implementations§
impl<'a> Freeze for Data<'a>
impl<'a> RefUnwindSafe for Data<'a>
impl<'a> Send for Data<'a>
impl<'a> Sync for Data<'a>
impl<'a> Unpin for Data<'a>
impl<'a> UnwindSafe for Data<'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