pub enum ResolvedBase {
InPack(Entry),
OutOfPack {
kind: Kind,
num_deltas: Option<u32>,
},
}
Expand description
A return value of a resolve function, which given an ObjectId
determines where an object can be found.
Variants§
InPack(Entry)
Indicate an object is within this pack, at the given entry, and thus can be looked up locally.
OutOfPack
Fields
Indicates the object of kind
was found outside of the pack.
Trait Implementations§
source§impl Clone for ResolvedBase
impl Clone for ResolvedBase
source§fn clone(&self) -> ResolvedBase
fn clone(&self) -> ResolvedBase
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResolvedBase
impl Debug for ResolvedBase
source§impl<'de> Deserialize<'de> for ResolvedBase
impl<'de> Deserialize<'de> for ResolvedBase
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ResolvedBase
impl Hash for ResolvedBase
source§impl Ord for ResolvedBase
impl Ord for ResolvedBase
source§fn cmp(&self, other: &ResolvedBase) -> Ordering
fn cmp(&self, other: &ResolvedBase) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ResolvedBase
impl PartialEq for ResolvedBase
source§fn eq(&self, other: &ResolvedBase) -> bool
fn eq(&self, other: &ResolvedBase) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ResolvedBase
impl PartialOrd for ResolvedBase
source§fn partial_cmp(&self, other: &ResolvedBase) -> Option<Ordering>
fn partial_cmp(&self, other: &ResolvedBase) -> Option<Ordering>
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 moresource§impl Serialize for ResolvedBase
impl Serialize for ResolvedBase
impl Eq for ResolvedBase
impl StructuralEq for ResolvedBase
impl StructuralPartialEq for ResolvedBase
Auto Trait Implementations§
impl RefUnwindSafe for ResolvedBase
impl Send for ResolvedBase
impl Sync for ResolvedBase
impl Unpin for ResolvedBase
impl UnwindSafe for ResolvedBase
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