Struct cursive::utils::lines::spans::Row [−][src]
Expand description
A list of segments representing a row of text
Fields
segments: Vec<Segment, Global>
List of segments
width: usize
Total width for this row
is_wrapped: bool
Whether or not this text was wrapped onto the next line
Implementations
Resolve the row indices into string slices and attributes.
pub fn overall_indices<S>(&self, spans: &[S]) -> Option<(usize, usize)> where
S: AsRef<IndexedCow>,
pub fn overall_indices<S>(&self, spans: &[S]) -> Option<(usize, usize)> where
S: AsRef<IndexedCow>,
Returns indices in the source string, if possible.
Returns overall (start, end)
, or None
if the segments are owned.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Row
impl UnwindSafe for Row
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
.