Rope.lineByIndex

Get line in the rope by a byte index.

struct Rope
const
lineByIndex
(
KeepTerminator keepTerminator = No.keepTerminator
)
(
size_t index
)
in (index >= 0 && index <= length, format!"Index %s is out of bounds of Rope of length %s"(index, length))

Return Value

Type: Rope

A rope slice with the line containing the given index.

Meta