Enum git_pack::data::output::entry::Kind [−][src]
Expand description
The kind of pack entry to be written
Variants
Base(Kind)A complete base object, including its kind
Tuple Fields of Base
0: KindA delta against the object with the given index. It’s always an index that was already encountered to refer only to object we have written already.
Fields of DeltaRef
object_index: usizeThe absolute index to the object to serve as base. It’s up to the writer to maintain enough state to allow producing a packed delta object from it.
A delta against the given object as identified by its ObjectId.
This is the case for thin packs only, i.e. those that are sent over the wire.
Note that there is the option of the ObjectId being used to refer to an object within
the same pack, but it’s a discontinued practice which won’t be encountered here.
Fields of DeltaOid
id: ObjectIdThe object serving as base for this delta
Trait Implementations
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
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Kind
impl UnwindSafe for Kind
Blanket Implementations
Mutably borrows from an owned value. Read more