Sourceval default_context : int Default amount of context shown around each change in the diff
The following constants were all chosen empirically.
Sourceval default_line_big_enough : int Default cutoff for line-level semantic cleanup. Any match of default_line_big_enough or more will not be deleted, even if it's surrounded by large inserts and deletes. Raising this quantity can only decrease the number of matches, and lowering it can only increase the number of matches.
Sourceval default_word_big_enough : int Sourceval too_short_to_split : int Governs the behavior of split_for_readability. We will only split ranges around matches of size greater than too_short_to_split. Note that this should always be at least 1, otherwise we will split on a single `Newline token. Raising this quantity will result in less ranges being split, and setting it to infinity is the same as passing in ~interleave:false.
Sourceval warn_if_no_trailing_newline_in_both_default : bool Sourcetype t = private {output : Output.t;rules : Format.Rules.t;float_tolerance : Core.Percent.t option;produce_unified_lines : bool;unrefined : bool;keep_ws : bool;find_moves : bool;split_long_lines : bool;interleave : bool;assume_text : bool;context : int;line_big_enough : int;word_big_enough : int;shallow : bool;quiet : bool;double_check : bool;mask_uniques : bool;prev_alt : string option;next_alt : string option;location_style : Format.Location_style.t;warn_if_no_trailing_newline_in_both : bool;side_by_side : [ `wrap | `truncate ] option;width_override : int option;
} Sourceval width_override :
t ->
int option @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval side_by_side :
t ->
[ `wrap | `truncate ] option @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval warn_if_no_trailing_newline_in_both :
t ->
bool @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval location_style :
t ->
Format.Location_style.t @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval next_alt :
t ->
string option @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval prev_alt :
t ->
string option @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval mask_uniques :
t ->
bool @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval double_check :
t ->
bool @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval quiet :
t ->
bool @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval shallow :
t ->
bool @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval word_big_enough :
t ->
int @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval line_big_enough :
t ->
int @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval context :
t ->
int @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval assume_text :
t ->
bool @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval interleave :
t ->
bool @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval split_long_lines :
t ->
bool @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval find_moves :
t ->
bool @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval keep_ws :
t ->
bool @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval unrefined :
t ->
bool @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval produce_unified_lines :
t ->
bool @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval float_tolerance :
t ->
Core.Percent.t option @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval rules :
t ->
Format.Rules.t @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval output :
t ->
Output.t @@ portable
[@@zero_alloccustom_error_message "Hint: add [@@fields.no_zero_alloc] to disable the zero-alloc guarantees that [@@deriving fields] tries to make by default."] Sourceval create_exn :
output:Output.t ->
rules:Format.Rules.t ->
float_tolerance:Core.Percent.t option ->
produce_unified_lines:bool ->
unrefined:bool ->
keep_ws:bool ->
find_moves:bool ->
split_long_lines:bool ->
interleave:bool ->
assume_text:bool ->
context:int ->
line_big_enough:int ->
word_big_enough:int ->
shallow:bool ->
quiet:bool ->
double_check:bool ->
mask_uniques:bool ->
prev_alt:string option ->
next_alt:string option ->
location_style:Format.Location_style.t ->
warn_if_no_trailing_newline_in_both:bool ->
side_by_side:[ `wrap | `truncate ] option ->
width_override:int option ->
t Raises if invariant t fails.
Sourceval override :
?output:Output.t ->
?rules:Format.Rules.t ->
?float_tolerance:Core.Percent.t option ->
?produce_unified_lines:bool ->
?unrefined:bool ->
?keep_ws:bool ->
?find_moves:bool ->
?split_long_lines:bool ->
?interleave:bool ->
?assume_text:bool ->
?context:int ->
?line_big_enough:int ->
?word_big_enough:int ->
?shallow:bool ->
?quiet:bool ->
?double_check:bool ->
?mask_uniques:bool ->
?prev_alt:string option ->
?next_alt:string option ->
?location_style:Format.Location_style.t ->
?warn_if_no_trailing_newline_in_both:bool ->
?side_by_side:[ `wrap | `truncate ] option ->
?width_override:int option ->
t ->
t