Struct cursive::utils::Row [] [src]

pub struct Row {
    pub start: usize,
    pub end: usize,
    pub width: usize,
}

Represents a row of text within a String.

A row is made of offsets into a parent String. The corresponding substring should take width cells when printed.

Fields

Beginning of the row in the parent String.

End of the row (excluded)

Width of the row, in cells.

Methods

impl Row
[src]

Shift a row start and end by offset.

Shift a row start and end by offset.

Chainable variant;

Shift back a row start and end by offset.

Trait Implementations

impl Debug for Row
[src]

Formats the value using the given formatter.

impl Clone for Row
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Row
[src]