pub enum AnchorFailure {
NotFound,
Ambiguous,
}Expand description
Why a fragment diff could not be placed in the buffer.
Both cases mean the same thing operationally — we do not know where the edit goes — but they are worth telling apart, because they tell the human different things about why.
Variants§
NotFound
old_text is not in the buffer. The file moved under the agent.
Ambiguous
old_text appears more than once. A short fragment matches in several places and
nothing in the payload says which was meant.
Trait Implementations§
Source§impl Clone for AnchorFailure
impl Clone for AnchorFailure
Source§fn clone(&self) -> AnchorFailure
fn clone(&self) -> AnchorFailure
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 moreimpl Copy for AnchorFailure
Source§impl Debug for AnchorFailure
impl Debug for AnchorFailure
impl Eq for AnchorFailure
Source§impl PartialEq for AnchorFailure
impl PartialEq for AnchorFailure
impl StructuralPartialEq for AnchorFailure
Auto Trait Implementations§
impl Freeze for AnchorFailure
impl RefUnwindSafe for AnchorFailure
impl Send for AnchorFailure
impl Sync for AnchorFailure
impl Unpin for AnchorFailure
impl UnsafeUnpin for AnchorFailure
impl UnwindSafe for AnchorFailure
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