pub enum OpKind {
Keep,
Delete,
Replace,
}Variants§
Keep
comments list --format batch’s default: no change. apply ignores this op entirely.
Delete
Remove the span; an own-line span takes its whole lines with it.
Replace
Replace the span’s text with text, which must itself be only comments and whitespace.
Trait Implementations§
impl Copy for OpKind
Source§impl<'de> Deserialize<'de> for OpKind
impl<'de> Deserialize<'de> for OpKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OpKind
impl StructuralPartialEq for OpKind
Auto Trait Implementations§
impl Freeze for OpKind
impl RefUnwindSafe for OpKind
impl Send for OpKind
impl Sync for OpKind
impl Unpin for OpKind
impl UnsafeUnpin for OpKind
impl UnwindSafe for OpKind
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