[−][src]Trait cursive::utils::span::SpannedText
Describes an object that appears like a SpannedStr
.
Associated Types
type S: AsRef<IndexedCow>
Type of span returned by SpannedText::spans()
.
Required methods
fn source(&self) -> &str
Returns the source text.
fn spans(&self) -> &[Self::S]
Returns the spans for this text.
Provided methods
fn as_ref(&self) -> SpannedTextRef<Self>
Returns a SpannedText
by reference.
Implementors
impl<'a, C: ?Sized> SpannedText for SpannedTextRef<'a, C> where
C: 'a + SpannedText,
[src]
C: 'a + SpannedText,
impl<'a, T> SpannedText for &'a SpannedString<T>
[src]
impl<'a, T> SpannedText for SpannedStr<'a, T> where
T: 'a,
[src]
T: 'a,