Module screeps::traits

source ·
Expand description

Useful traits for interacting with JavaScript above what stdweb provides.

Traits

Trait for casting api results which we expect to be the right thing as long as all JS code is behaving as expected.
Attempt to construct Self via a conversion.
An attempted conversion that consumes self, which may or may not be expensive.