pub enum ResolvedBase {
InPack(Entry),
OutOfPack {
kind: Kind,
end: usize,
},
}
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
Indicates the object of kind
was found outside of the pack, and its data was written into an output
vector which now has a length of end
.
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§impl PartialOrd for ResolvedBase
impl PartialOrd for ResolvedBase
source§impl Serialize for ResolvedBase
impl Serialize for ResolvedBase
impl Eq for ResolvedBase
impl StructuralPartialEq for ResolvedBase
Auto Trait Implementations§
impl Freeze for ResolvedBase
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)