pub enum RewriteAction {
Renamed {
to: &'static str,
},
Removed {
reason: String,
},
Replaced {
with: String,
},
Inserted {
line: String,
reason: String,
},
}Expand description
What one rewrite did to one line.
Variants§
Renamed
The key was renamed on its line; the value is untouched.
Removed
The line (and any block value under it) was removed.
Replaced
The line was replaced by another key/value pair.
Inserted
A line was inserted after this one (polarity conservation).
Trait Implementations§
Source§impl Clone for RewriteAction
impl Clone for RewriteAction
Source§fn clone(&self) -> RewriteAction
fn clone(&self) -> RewriteAction
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 RewriteAction
impl Debug for RewriteAction
Source§impl Display for RewriteAction
impl Display for RewriteAction
impl Eq for RewriteAction
Source§impl PartialEq for RewriteAction
impl PartialEq for RewriteAction
impl StructuralPartialEq for RewriteAction
Auto Trait Implementations§
impl Freeze for RewriteAction
impl RefUnwindSafe for RewriteAction
impl Send for RewriteAction
impl Sync for RewriteAction
impl Unpin for RewriteAction
impl UnsafeUnpin for RewriteAction
impl UnwindSafe for RewriteAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.