Struct cursive::utils::span::SpannedStr [−][src]
pub struct SpannedStr<'a, T> { /* fields omitted */ }
Expand description
The immutable, borrowed equivalent of SpannedString
.
Implementations
Creates a new SpannedStr
from the given references.
Gives access to the parsed styled spans.
Returns a reference to the indexed spans.
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 !=
.
type S = IndexedSpan<T>
type S = IndexedSpan<T>
Type of span returned by SpannedText::spans()
.
Returns the spans for this text.
Returns a SpannedText
by reference.
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for SpannedStr<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for SpannedStr<'a, T> where
T: Sync,
impl<'a, T> Sync for SpannedStr<'a, T> where
T: Sync,
impl<'a, T> Unpin for SpannedStr<'a, T>
impl<'a, T> UnwindSafe for SpannedStr<'a, T> where
T: RefUnwindSafe,
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
.