Module rope
Expand description
A rope data structure with a line count metric and (soon) other useful info.
Structs§
- Base
Metric - This metric let us walk utf8 text by code point.
- Chunk
Iter - Lines
- Lines
Metric - Lines
Raw - Rope
Info - Utf16
Code Units Metric
Functions§
- count_
newlines - len_
utf8_ from_ first_ byte - Given the inital byte of a UTF-8 codepoint, returns the number of bytes required to represent the codepoint. RFC reference : https://tools.ietf.org/html/rfc3629#section-4
Type Aliases§
- Rope
- A rope data structure.
- Rope
Delta - Represents a transform from one rope to another.
- Rope
Delta Element - An element in a
RopeDelta.