#[non_exhaustive]pub struct DiffStyle {
pub string: StringDiffStyle,
pub collection: CollectionDiffStyle,
}
Available on crate feature
diff
only.Expand description
The style sheet for DiffFormat
.
If the provided text styling for diffs is inaccessible for you, or you prefer to have text styling disabled, you can use this style sheet to customize the styling of diffs.
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.string: StringDiffStyle
The styling for string diffs.
collection: CollectionDiffStyle
The styling for diffs of collections.
Implementations§
Trait Implementations§
source§impl PartialEq<DiffStyle> for DiffStyle
impl PartialEq<DiffStyle> for DiffStyle
impl Eq for DiffStyle
impl StructuralEq for DiffStyle
impl StructuralPartialEq for DiffStyle
Auto Trait Implementations§
impl RefUnwindSafe for DiffStyle
impl Send for DiffStyle
impl Sync for DiffStyle
impl Unpin for DiffStyle
impl UnwindSafe for DiffStyle
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