Trait cursive::utils::span::SpannedText[][src]

pub trait SpannedText {
    type S: AsRef<IndexedCow>;
    fn source(&self) -> &str;
fn spans(&self) -> &[Self::S]; fn as_ref<'a>(&'a self) -> SpannedTextRef<'a, Self> { ... } }

Describes an object that appears like a SpannedStr.

Associated Types

Type of span returned by SpannedText::spans().

Required Methods

Returns the source text.

Important traits for &'a [u8]

Returns the spans for this text.

Provided Methods

Returns a SpannedText by reference.

Implementors