pub enum Data<'a> {
Missing,
Buffer(&'a [u8]),
Binary {
size: u64,
},
}
Available on crate feature
blob
only.Expand description
The data of a diffable 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.
Buffer(&'a [u8])
The textual data as processed to be in a diffable state.
Binary
The size that the binary blob had at the given revision, without having applied filters, as it’s either considered binary or above the big-file threshold.
In this state, the binary file cannot be diffed.
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