AddDirection

Trait AddDirection 

Source
pub trait AddDirection {
    // Required method
    fn checked_add_direction(self, direction: Direction) -> Option<Self>
       where Self: Sized;
}
Expand description

Trait that encapsulates taking a screeps::Direction constant and producing a new node from it.

Required Methods§

Source

fn checked_add_direction(self, direction: Direction) -> Option<Self>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl AddDirection for Position

Source§

fn checked_add_direction(self, direction: Direction) -> Option<Self>

Source§

impl AddDirection for RoomXY

Source§

fn checked_add_direction(self, direction: Direction) -> Option<Self>

Implementors§