Enum git_ref::TargetRef [−][src]
Expand description
Denotes a ref target, equivalent to Kind, but with immutable data.
Variants
A ref that points to an object id
Tuple Fields of Peeled
0: &'a oidA ref that points to another reference by its validated name, adding a level of indirection.
Tuple Fields of Symbolic
0: &'a BStrImplementations
Interpret this target as object id which maybe None if it is symbolic.
Interpret this target as name of the reference it points to which maybe None if it an object id.
Convert this instance into an owned version, without consuming it.
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<'a> RefUnwindSafe for TargetRef<'a>
impl<'a> UnwindSafe for TargetRef<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more