pub struct Applied {
pub text: String,
pub change: FileChange,
pub replaced: usize,
pub notes: Vec<String>,
}Expand description
What apply makes of a file’s text.
Fields§
§text: StringThe edited text, with the byte-order mark and line endings the file
had: what Edit writes.
change: FileChangeWhat the edit does to the file, with its hunks, the hash of the text
it was made to and that of text.
replaced: usizeHow many places were replaced.
notes: Vec<String>How each edit that matched only loosely was matched, for the model.
Trait Implementations§
impl Eq for Applied
impl StructuralPartialEq for Applied
Auto Trait Implementations§
impl Freeze for Applied
impl RefUnwindSafe for Applied
impl Send for Applied
impl Sync for Applied
impl Unpin for Applied
impl UnsafeUnpin for Applied
impl UnwindSafe for Applied
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.