Struct tuifw_screen::Rect
source · [−]Fields
tl: Point
size: Vector
Implementations
sourceimpl Rect
impl Rect
pub fn from_tl_br(tl: Point, br: Point) -> Rect
pub fn is_empty(self) -> bool
pub fn w(self) -> i16
pub fn h(self) -> i16
pub fn l(self) -> i16
pub fn t(self) -> i16
pub fn r(self) -> i16
pub fn b(self) -> i16
pub fn tr(self) -> Point
pub fn bl(self) -> Point
pub fn br(self) -> Point
pub fn area(self) -> u32
pub fn contains(self, p: Point) -> bool
pub fn intersect(self, other: Rect) -> Rect
pub fn intersect_h_band(self, band: HBand) -> Rect
pub fn intersect_v_band(self, band: VBand) -> Rect
pub fn union(self, other: Rect) -> Option<Either<Either<HBand, VBand>, Rect>>
pub fn union_intersect(self, union_with: Rect, intersect_with: Rect) -> Rect
pub fn offset(self, d: Vector) -> Rect
Trait Implementations
impl Copy for Rect
impl Eq for Rect
impl StructuralEq for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnwindSafe for Rect
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more