Trait screeps::traits::Harvestable
source · pub trait Harvestable: AsRef<RoomObject> { }
Expand description
Trait for all wrappers over Screeps JavaScript objects which can be the
target of Creep.harvest
.
Contracts
The reference returned from AsRef<RoomObject>::as_ref
must be a valid
target for Creep.harvest
.