pub enum PatchSetResolution {
NotHeld,
Resolved(ObjectId),
}Expand description
RFC 117 T2: the outcome of resolve_patch_set_digest. NotHeld is not an error – the
ordinary “you have not synced that far yet” case – and ambiguity is never a variant here:
design T2 rules more-than-one-match a refusal, so a caller cannot accidentally proceed on an
ambiguous answer by pattern-matching past it.
Variants§
NotHeld
No local block reachable from any heads/*/tags/* ref has this patch set.
Resolved(ObjectId)
Exactly one local block has this patch set.
Trait Implementations§
Source§impl Clone for PatchSetResolution
impl Clone for PatchSetResolution
Source§fn clone(&self) -> PatchSetResolution
fn clone(&self) -> PatchSetResolution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PatchSetResolution
impl Debug for PatchSetResolution
impl Eq for PatchSetResolution
Source§impl PartialEq for PatchSetResolution
impl PartialEq for PatchSetResolution
impl StructuralPartialEq for PatchSetResolution
Auto Trait Implementations§
impl Freeze for PatchSetResolution
impl RefUnwindSafe for PatchSetResolution
impl Send for PatchSetResolution
impl Sync for PatchSetResolution
impl Unpin for PatchSetResolution
impl UnsafeUnpin for PatchSetResolution
impl UnwindSafe for PatchSetResolution
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