pub trait GridShape: ShapeClone + Sync + Send + 'static {
// Required methods
fn iter(&self) -> GridShapeIterator ⓘ;
fn pos(&self) -> IVec2;
fn set_pos(&mut self, pos: IVec2);
fn bounds(&self) -> GridRect;
}
Get a rect encompassing the entire shape
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.