pub struct Area(/* private fields */);Expand description
Inclusive rectangular drawing area defined by two corner Points.
Implementations§
Source§impl Area
impl Area
pub fn new(point_1: Point, point_2: Point) -> Area
pub fn get_point_1(&self) -> Point
pub fn get_point_2(&self) -> Point
pub fn get_width(&self) -> u16
pub fn get_height(&self) -> u16
pub fn set_point_1(self, value: Point) -> Area
pub fn set_point_2(self, value: Point) -> Area
Trait Implementations§
impl Copy for Area
impl Eq for Area
impl PlainData for Area
impl StructuralPartialEq for Area
Auto Trait Implementations§
impl Freeze for Area
impl RefUnwindSafe for Area
impl Send for Area
impl Sync for Area
impl Unpin for Area
impl UnsafeUnpin for Area
impl UnwindSafe for Area
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