Struct cursive::utils::span::IndexedSpan [−][src]
pub struct IndexedSpan<T> {
pub content: IndexedCow,
pub attr: T,
pub width: usize,
}
Expand description
An indexed span with an associated attribute.
Fields
content: IndexedCow
Content of the span.
attr: T
Attribute applied to the span.
width: usize
Width of the text for this span.
Implementations
Resolve the span to a string slice and an attribute.
Resolve the span to a string slice and a mutable attribute.
Returns a reference struct to only access mutation of the attribute.
Returns a single indexed span around the entire text.
Returns a single owned indexed span around the entire text.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for IndexedSpan<T> where
T: RefUnwindSafe,
impl<T> Send for IndexedSpan<T> where
T: Send,
impl<T> Sync for IndexedSpan<T> where
T: Sync,
impl<T> Unpin for IndexedSpan<T> where
T: Unpin,
impl<T> UnwindSafe for IndexedSpan<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self
.