pub struct PaneRect {
pub x: u16,
pub y: u16,
pub width: u16,
pub height: u16,
}Expand description
Geometry rectangle in screen coordinates. Mirrors ratatui’s
Rect shape so the renderer can hand the result straight to
the layout routines without an extra conversion.
Fields§
§x: u16Left edge, in cells from the screen’s left.
y: u16Top edge, in cells from the screen’s top.
width: u16Width in cells.
height: u16Height in cells.
Trait Implementations§
impl Copy for PaneRect
impl Eq for PaneRect
impl StructuralPartialEq for PaneRect
Auto Trait Implementations§
impl Freeze for PaneRect
impl RefUnwindSafe for PaneRect
impl Send for PaneRect
impl Sync for PaneRect
impl Unpin for PaneRect
impl UnsafeUnpin for PaneRect
impl UnwindSafe for PaneRect
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.