Modules§
Structs§
- Bytes
Matcher - Matcher using bytes regex (for any input)
- Diff
Hunk - Representation of a Hunk in a diff
- Hunk
Head - Metadata for a specific hunk
- Patch
- A destructured Patch
- StrMatcher
- Matcher using UTF-8 regex (for valid UTF-8)
Enums§
- Captures
- Abstraction over regex capture groups
- Diff
Line - A generic line in a diff
- Match
- Patch
Content - Patch
Line - Smart
Matcher - Chooses the appropriate matcher based on whether input is valid UTF-8
Traits§
- Pattern
Matcher - Trait for pattern matching abstraction
Functions§
- parse_
data - Parse the given bytes into Patchlines, while capable of parsing invalid utf-8
- parse_
patch_ line - parse_
patch_ lines - translate_
lines_ to_ patches - parse the given patchlines and return Patches. This removes all fancy lines that are not needed for a unified format diff