pub struct PointyRectangle {
pub left: i32,
pub right: i32,
pub top: i32,
pub bottom: i32,
}Expand description
Pointy rectangle shape parameters.
Calling coords will return coordinates in that shape.
Equivalent to pointy_rectangle
Fields§
§left: i32Lowest x coordinate
right: i32Highest x coordinate
top: i32Lowest y coordinate
bottom: i32Highest y coordinate
Implementations§
Source§impl PointyRectangle
impl PointyRectangle
Sourcepub fn coords(self) -> impl ExactSizeIterator
pub fn coords(self) -> impl ExactSizeIterator
Generates a pointy_rectangle with the shape parameters
Trait Implementations§
Source§impl Clone for PointyRectangle
impl Clone for PointyRectangle
Source§fn clone(&self) -> PointyRectangle
fn clone(&self) -> PointyRectangle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PointyRectangle
Source§impl Debug for PointyRectangle
impl Debug for PointyRectangle
Source§impl Default for PointyRectangle
impl Default for PointyRectangle
Source§fn default() -> PointyRectangle
fn default() -> PointyRectangle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PointyRectangle
impl RefUnwindSafe for PointyRectangle
impl Send for PointyRectangle
impl Sync for PointyRectangle
impl Unpin for PointyRectangle
impl UnsafeUnpin for PointyRectangle
impl UnwindSafe for PointyRectangle
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