[][src]Module cursive_core::utils::span

Work with spans of text.

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

Structs

IndexedSpan

An indexed span with an associated attribute.

IndexedSpanRefMut

A reference to an IndexedSpan allowing modification of the attribute.

Span

A resolved span borrowing its source string.

SpanMut

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

SpannedStr

The immutable, borrowed equivalent of SpannedString.

SpannedString

A string with associated spans.

SpannedTextRef

A reference to another SpannedText.

Enums

IndexedCow

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

Traits

SpannedText

Describes an object that appears like a SpannedStr.