pub struct Rect { /* private fields */ }
Implementations§
Source§impl Rect
impl Rect
pub fn contains_point(&self, p: Point) -> bool
pub fn intersects_rect(&self, other: Rect) -> bool
pub fn nw(&self) -> Point
pub fn sw(&self) -> Point
pub fn se(&self) -> Point
pub fn ne(&self) -> Point
pub fn south(&self) -> Segment
pub fn east(&self) -> Segment
pub fn north(&self) -> Segment
pub fn west(&self) -> Segment
pub fn segment_at(&self, index: i64) -> Segment
Trait Implementations§
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