pub struct Area(/* private fields */);
Implementations§
Source§impl Area
impl Area
pub fn new(point_1: Point, point_2: Point) -> Self
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) -> Self
pub fn set_point_2(self, value: Point) -> Self
Trait Implementations§
impl Copy for Area
impl Eq 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 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