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;
}

Required Methods§

source

fn iter(&self) -> GridShapeIterator

source

fn pos(&self) -> IVec2

source

fn set_pos(&mut self, pos: IVec2)

source

fn bounds(&self) -> GridRect

Get a rect encompassing the entire shape

Trait Implementations§

source§

impl Clone for Box<dyn GridShape>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Box<dyn GridShape>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for Box<dyn GridShape>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Implementors§