Struct tui::layout::Rect[][src]

pub struct Rect {
    pub x: u16,
    pub y: u16,
    pub width: u16,
    pub height: u16,
}

A simple rectangle used in the computation of the layout and to give widgets an hint about the area they are supposed to render to.

Fields

Methods

impl Rect
[src]

Trait Implementations

impl Debug for Rect
[src]

Formats the value using the given formatter. Read more

impl Clone for Rect
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Rect
[src]

impl Hash for Rect
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Rect
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Rect
[src]

impl Default for Rect
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Rect

impl Sync for Rect