#[non_exhaustive]pub enum MemoryEdit {
StrReplace {
old: String,
new: String,
replace_all: bool,
},
Insert {
line: usize,
text: String,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for MemoryEdit
impl Clone for MemoryEdit
Source§impl Debug for MemoryEdit
impl Debug for MemoryEdit
Source§impl<'de> Deserialize<'de> for MemoryEdit
impl<'de> Deserialize<'de> for MemoryEdit
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 MemoryEdit
Source§impl PartialEq for MemoryEdit
impl PartialEq for MemoryEdit
Source§impl Serialize for MemoryEdit
impl Serialize for MemoryEdit
impl StructuralPartialEq for MemoryEdit
Auto Trait Implementations§
impl Forget for MemoryEdit
impl Freeze for MemoryEdit
impl Move for MemoryEdit
impl RefUnwindSafe for MemoryEdit
impl Send for MemoryEditwhere
RawVecInner: Send,
impl Sync for MemoryEditwhere
RawVecInner: Sync,
impl Unpin for MemoryEdit
impl UnsafeUnpin for MemoryEdit
impl UnwindSafe for MemoryEditwhere
RawVecInner: UnwindSafe,
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