Struct cursive_cached_text_view::TextContentRef
source · pub struct TextContentRef { /* private fields */ }Expand description
A reference to the text content.
This can be deref’ed into a StyledString.
This keeps the content locked. Do not store this!
Methods from Deref<Target = StyledString>§
pub fn spans(&self) -> impl DoubleEndedIterator + ExactSizeIterator
pub fn spans(&self) -> impl DoubleEndedIterator + ExactSizeIterator
Iterates on the resolved spans.
pub fn spans_raw(&self) -> &[IndexedSpan<T>]
pub fn spans_raw(&self) -> &[IndexedSpan<T>]
Returns a reference to the indexed spans.