Enum git_ref::Target [−][src]
Expand description
Denotes a ref target, equivalent to Kind
, but with mutable data.
Variants
Peeled(ObjectId)
A ref that points to an object id
Tuple Fields of Peeled
0: ObjectId
Symbolic(FullName)
A ref that points to another reference by its validated name, adding a level of indirection.
Note that this is an extension of gitoxide which will be helpful in logging all reference changes.
Tuple Fields of Symbolic
0: FullName
Implementations
Interpret this target as object id which maybe None
if it is symbolic.
Return the contained object id if the target is peeled or itself if it is not.
Interpret this target as name of the reference it points to which maybe None
if it an object id.
Create an instance that signals that a reference should exist if this value is used in a Change
.
Trait Implementations
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 Target
impl UnwindSafe for Target
Blanket Implementations
Mutably borrows from an owned value. Read more