pub struct Rect { /* private fields */ }
Implementations§
Source§impl Rect
impl Rect
pub const fn new(position: Position, size: Size) -> Self
pub const fn position(&self) -> Position
pub fn middle(&self) -> Position
pub const fn x(&self) -> f64
pub const fn y(&self) -> f64
pub const fn size(&self) -> Size
pub const fn width(&self) -> f64
pub const fn height(&self) -> f64
Trait Implementations§
Source§impl PartialOrd for Rect
impl PartialOrd for Rect
impl Copy for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl Freeze for Rect
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnwindSafe for Rect
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