Enum gix_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§
source§impl Clone for PreviousValue
impl Clone for PreviousValue
source§fn clone(&self) -> PreviousValue
fn clone(&self) -> PreviousValue
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 PreviousValue
impl Debug for PreviousValue
source§impl Hash for PreviousValue
impl Hash for PreviousValue
source§impl Ord for PreviousValue
impl Ord for PreviousValue
source§fn cmp(&self, other: &PreviousValue) -> Ordering
fn cmp(&self, other: &PreviousValue) -> 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 PreviousValue
impl PartialEq for PreviousValue
source§impl PartialOrd for PreviousValue
impl PartialOrd for PreviousValue
impl Eq for PreviousValue
impl StructuralPartialEq for PreviousValue
Auto Trait Implementations§
impl Freeze for PreviousValue
impl RefUnwindSafe for PreviousValue
impl Send for PreviousValue
impl Sync for PreviousValue
impl Unpin for PreviousValue
impl UnwindSafe for PreviousValue
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
)