gix_merge::blobEnum BuiltinDriver
Source pub enum BuiltinDriver {
Text,
Binary,
Union,
}
Expand description
Define a built-in way of performing a three-way merge, including auto-resolution support.
Some values are related to diffing, some are related to conversions.
Perform a merge between text-sources such that conflicts are marked according to
merge.conflictStyle
in the Git configuration.
If any of the inputs, base, ours or theirs looks like non-text/binary,
the Binary
driver will be used instead.
Also see builtin_driver::text::ConflictStyle
.
Merge ‘unmergable’ content by choosing ours or theirs, without performing
an actual merge.
Note that if the merge operation is for virtual ancestor (a merge for merge-bases),
then ours will always be chosen.
Merge text-sources and resolve conflicts by adding conflicting lines one after another,
in random order, without adding conflict markers either.
This can be useful for files that change a lot, but will remain usable merely by adding
all changed lines.
Return the name of this instance.
Get all available built-in drivers.
Try to match one of our variants to name
, case-sensitive, and return its instance.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
Compares and returns the maximum of two values.
Read more
Compares and returns the minimum of two values.
Read more
Restrict a value to a certain interval.
Read more
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
This method returns an ordering between
self
and
other
values if one exists.
Read more
Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more
Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more
Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more
Tests greater than or equal to (for
self
and
other
) and is used by
the
>=
operator.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
🔬This is a nightly-only experimental API. (clone_to_uninit
)
Performs copy-assignment from
self
to
dst
.
Read more
Checks if this value is equivalent to the given key.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
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.