pub struct Rewrite {
pub line: usize,
pub key: &'static str,
pub path: String,
pub action: RewriteAction,
}Expand description
One rewritten occurrence of a retired key.
Fields§
§line: usize1-based line in the original file.
key: &'static strThe retired key as written — or the key inserted, for
RewriteAction::Inserted.
path: StringWhere the key sat, as a human path
(metadata_fields[source_family].optional).
action: RewriteActionTrait Implementations§
impl Eq for Rewrite
impl StructuralPartialEq for Rewrite
Auto Trait Implementations§
impl Freeze for Rewrite
impl RefUnwindSafe for Rewrite
impl Send for Rewrite
impl Sync for Rewrite
impl Unpin for Rewrite
impl UnsafeUnpin for Rewrite
impl UnwindSafe for Rewrite
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.