pub struct FileChangeReview {
pub path: PathBuf,
pub before: Option<Vec<u8>>,
pub after: Vec<u8>,
}Expand description
Host-neutral material needed to review a file mutation.
Keeping bytes instead of UTF-8 strings preserves the source behavior for an existing file whose contents are not valid Unicode. Presentation layers are responsible for producing a bounded textual or binary-aware diff.
Fields§
§path: PathBuf§before: Option<Vec<u8>>§after: Vec<u8>Trait Implementations§
Source§impl Clone for FileChangeReview
impl Clone for FileChangeReview
Source§fn clone(&self) -> FileChangeReview
fn clone(&self) -> FileChangeReview
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 FileChangeReview
impl Debug for FileChangeReview
impl Eq for FileChangeReview
Source§impl PartialEq for FileChangeReview
impl PartialEq for FileChangeReview
impl StructuralPartialEq for FileChangeReview
Auto Trait Implementations§
impl Freeze for FileChangeReview
impl RefUnwindSafe for FileChangeReview
impl Send for FileChangeReview
impl Sync for FileChangeReview
impl Unpin for FileChangeReview
impl UnsafeUnpin for FileChangeReview
impl UnwindSafe for FileChangeReview
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.