#[non_exhaustive]pub struct DiffOptions {
pub deletions: bool,
}Expand description
How a diff treats what the edit leaves out.
§Examples
use ltk_meta::DiffOptions;
let mut options = DiffOptions::default();
options.deletions = true;Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.deletions: boolAn object in the base and not in the edit goes on BinOverride::deleted.
Off by default. A mod that omits an object is not asking for it to be deleted. A tool authoring a deliberate patch turns it on.
Trait Implementations§
Source§impl Clone for DiffOptions
impl Clone for DiffOptions
impl Copy for DiffOptions
Source§impl Debug for DiffOptions
impl Debug for DiffOptions
Source§impl Default for DiffOptions
impl Default for DiffOptions
impl Eq for DiffOptions
Source§impl Hash for DiffOptions
impl Hash for DiffOptions
Source§impl PartialEq for DiffOptions
impl PartialEq for DiffOptions
impl StructuralPartialEq for DiffOptions
Auto Trait Implementations§
impl Freeze for DiffOptions
impl RefUnwindSafe for DiffOptions
impl Send for DiffOptions
impl Sync for DiffOptions
impl Unpin for DiffOptions
impl UnsafeUnpin for DiffOptions
impl UnwindSafe for DiffOptions
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.