Struct cursive::utils::span::IndexedSpan[][src]

pub struct IndexedSpan<T> {
    pub content: IndexedCow,
    pub attr: T,
}

An indexed span with an associated attribute.

Fields

Content of the span.

Attribute applied to the span.

Methods

impl<T> IndexedSpan<T>
[src]

Resolve the span to a string slice and an attribute.

Returns true if self is an empty span.

Returns a single span around the entire text.

Trait Implementations

impl<T: Debug> Debug for IndexedSpan<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Clone> Clone for IndexedSpan<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for IndexedSpan<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for IndexedSpan<T>
[src]

impl<T> AsRef<IndexedCow> for IndexedSpan<T>
[src]

Performs the conversion.

Auto Trait Implementations

impl<T> Send for IndexedSpan<T> where
    T: Send

impl<T> Sync for IndexedSpan<T> where
    T: Sync