Expand description

Work with spans of text.

This module defines various structs describing a span of text from a larger string.

Structs

An indexed span with an associated attribute.

A reference to an IndexedSpan allowing modification of the attribute.

A resolved span borrowing its source string.

A resolved span borrowing its source string, with mutable access to the attribute.

The immutable, borrowed equivalent of SpannedString.

A string with associated spans.

A reference to another SpannedText.

Enums

A span of text that can be either owned, or indexed in another String.

Traits

Describes an object that appears like a SpannedStr.