pub struct DiffOptions { /* private fields */ }
Expand description

A collection of options for modifying the way a diff is performed

Implementations

Construct a new DiffOptions with default settings

Defaults
  • context_len = 3

Set the number of context lines that should be used when producing a patch

Produce a Patch between two texts based on the configured options

Create a patch between two potentially non-utf8 texts

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.