Skip to content

rs_rich.ext.diff

Generated from the type stubs by scripts/gen_python_api.py; do not edit.

rs_rich.ext.diff: diffs: the engine, views, git patches and test reports (rich_ext::diff).

No Rich counterpart: this is the port's own rs-rich-ext crate.

DIFF_STYLES module-attribute

DIFF_STYLES: List[Any]

STYLES module-attribute

STYLES = DIFF_STYLES

diff_slices module-attribute

diff_slices = diff_sequences

Hunk

header property

header: Any

new_range property

new_range: Any

old_range property

old_range: Any

ops property

ops: Any

TextDiff

context property

context: Any

is_equal property

is_equal: Any

new_lines property

new_lines: Any

old_lines property

old_lines: Any

ops property

ops: Any

hunks

hunks() -> Any

stats

stats() -> Any

unified

unified(old_name: Any = ..., new_name: Any = ...) -> Any

DiffView

is_equal property

is_equal: Any

from_diff classmethod

from_diff(diff: Any, *, layout: Any = ..., line_numbers: Any = ..., wrap: Any = ..., titles: Any = ..., emphasis: Any = ...) -> Any

stats

stats() -> Any

style_changed_lines

style_changed_lines() -> Any

SourceDiff

view

view() -> Any

FilePatch

additions property

additions: Any

binary property

binary: Any

deletions property

deletions: Any

hunks property

hunks: Any

mode_changed property

mode_changed: Any

new_mode property

new_mode: Any

new_path property

new_path: Any

old_mode property

old_mode: Any

old_path property

old_path: Any

path property

path: Any

similarity property

similarity: Any

status property

status: Any

Patch

files property

files: Any

stats

stats() -> Any

Annotation

file_url

file_url(path: Any) -> Any

line_url

line_url(path: Any, line: Any) -> Any

PatchView

patch property

patch: Any

KeepFiles

apply

apply(patch: Any) -> Any

TestCase

actual property

actual: Any

classname property

classname: Any

details property

details: Any

duration property

duration: Any

expected property

expected: Any

full_name property

full_name: Any

is_failure property

is_failure: Any

message property

message: Any

name property

name: Any

status property

status: Any

stderr property

stderr: Any

stdout property

stdout: Any

TestSuite

cases property

cases: Any

duration property

duration: Any

name property

name: Any

time

time() -> Any

totals

totals() -> Any

TestRun

duration property

duration: Any

is_success property

is_success: Any

suites property

suites: Any

from_junit staticmethod

from_junit(xml: Any) -> Any

from_libtest staticmethod

from_libtest(json: Any) -> Any

time

time() -> Any

to_junit_xml

to_junit_xml() -> Any

totals

totals() -> Any

TestReport

run property

run: Any

PatchParseError

Bases: ExtError

TestParseError

Bases: ExtError

diff_sequences

diff_sequences(old: Any, new: Any) -> Any

diff_lines

diff_lines(old: Any, new: Any) -> Any

diff_words

diff_words(old: Any, new: Any) -> Any

diff_chars

diff_chars(old: Any, new: Any) -> Any

tokenize

tokenize(text: Any) -> Any

hunk_header

hunk_header(old: Any, new: Any) -> Any

group_hunks

group_hunks(ops: Any, context: Any = ...) -> Any

parse_patch

parse_patch(text: Any) -> Any