Module screeps::traits[][src]

Useful traits for interacting with JavaScript beyond what stdweb provides.

Traits

FromExpectedType

See IntoExpectedType

IntoExpectedType

Trait for casting api results which we expect to be the right thing as long as all JS code is behaving as expected.

TryFrom

Attempt to construct Self via a conversion.

TryInto

An attempted conversion that consumes self, which may or may not be expensive.