Struct term_cursor::Relative [] [src]

pub struct Relative(pub i32, pub i32);

A type that, when Displayed, makes the cursor move by the specified amount.

This is identical to a Goto(get_cursor_pos() + (x, y)) (pseudocode).

The Relative tuple type takes (x, y) coordinates, where X and Y correspond to columns and rows respectively.

Trait Implementations

impl Clone for Relative
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Relative
[src]

impl Display for Relative
[src]

[src]

Formats the value using the given formatter. Read more