Struct termimad::Area [−][src]
Expand description
A rectangular part of the screen
Fields
left: u16
top: u16
width: u16
height: u16
Implementations
impl Area
[src]
impl Area
[src]pub fn uninitialized() -> Area
[src]
pub fn uninitialized() -> Area
[src]build a new area. You’ll need to set the position and size before you can use it
pub fn full_screen() -> Area
[src]
pub fn full_screen() -> Area
[src]build an area covering the whole terminal
pub fn pad_for_max_width(&mut self, max_width: u16)
[src]
pub fn pad_for_max_width(&mut self, max_width: u16)
[src]symmetrically shrink the area if its width is bigger than max_width
Trait Implementations
impl Eq for Area
[src]
impl StructuralEq for Area
[src]
impl StructuralPartialEq for Area
[src]
Auto Trait Implementations
impl RefUnwindSafe for Area
impl Send for Area
impl Sync for Area
impl Unpin for Area
impl UnwindSafe for Area
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more