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

start: usize

Beginning of the row in the parent String.

end: usize

End of the row (excluded)

width: usize

Width of the row, in cells.

Methods

impl Row
[src]

fn shift(&mut self, offset: usize)

Shift a row start and end by offset.

fn shifted(self, offset: usize) -> Self

Shift a row start and end by offset.

Chainable variant;

fn rev_shift(&mut self, offset: usize)

Shift back a row start and end by offset.

Trait Implementations

impl Copy for Row
[src]

impl Clone for Row
[src]

fn clone(&self) -> Row

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Row
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.