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
Fields
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> StructuralEq for Data<'a>
impl<'a> StructuralPartialEq for Data<'a>
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more