pub struct Screen {
    pub width: u16,
    pub height: u16,
}
Expand description

The dimensions of the screen

Fields

width: u16height: u16

Implementations

move the cursor to x,y

clear from the cursor to the end of line

clear the area and everything to the right. Should be used with parcimony as it could lead to flickering.

just clears the char at the bottom right. (any redraw of this position makes the whole terminal flicker on some terminals like win/conemu, so we draw it only once at start of the app)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.