Enum git_ref::transaction::PreviousValue
source · [−]pub enum PreviousValue {
Any,
MustExist,
MustNotExist,
MustExistAndMatch(Target),
ExistingMustMatch(Target),
}
Expand description
The desired value of an updated value
Variants
Any
No requirements are made towards the current value, and the new value is set unconditionally.
MustExist
The reference must exist and may have any value.
MustNotExist
Create the ref only, hence the reference must not exist.
MustExistAndMatch(Target)
The ref must exist and have the given value.
ExistingMustMatch(Target)
The ref may exist and have the given value, or may not exist at all.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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 PreviousValue
impl Send for PreviousValue
impl Sync for PreviousValue
impl Unpin for PreviousValue
impl UnwindSafe for PreviousValue
Blanket Implementations
Mutably borrows from an owned value. Read more