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> PartialEq for Data<'a>
impl<'a> PartialEq for Data<'a>
source§impl<'a> PartialOrd for Data<'a>
impl<'a> PartialOrd for Data<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)