pub enum EditSource {
Keyboard,
Paste,
Formatter,
Lsp,
Agent(ProposalId),
Replace,
}Expand description
Where an edit came from. Agent carries the ProposalId so accepted agent edits
stay traceable through undo history and review.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for EditSource
impl Clone for EditSource
Source§fn clone(&self) -> EditSource
fn clone(&self) -> EditSource
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 EditSource
impl Debug for EditSource
impl Eq for EditSource
Source§impl PartialEq for EditSource
impl PartialEq for EditSource
impl StructuralPartialEq for EditSource
Auto Trait Implementations§
impl Freeze for EditSource
impl RefUnwindSafe for EditSource
impl Send for EditSource
impl Sync for EditSource
impl Unpin for EditSource
impl UnsafeUnpin for EditSource
impl UnwindSafe for EditSource
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