Docs.rs
screeps-game-api-0.22.0
screeps-game-api 0.22.0
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
daboross
shanemadden
Dependencies
arrayvec ^0.7
normal
enum-iterator ^2.0
normal
enum_dispatch ^0.3
normal
js-sys ^0.3
normal
num-derive ^0.4
normal
num-traits ^0.2
normal
serde ^1
normal
serde-wasm-bindgen ^0.6
normal
serde_json ^1
normal
serde_repr ^0.1
normal
wasm-bindgen >=0.2.93
normal
bincode ^1.3
dev
wasm-bindgen-test ^0.3
dev
Versions
41.24%
of the crate is documented
Go to latest version
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
screeps
0.22.0
HasPosition
Required Methods
pos
Implementors
In screeps::
traits
screeps
::
traits
Trait
HasPosition
Copy item path
Source
pub trait HasPosition { // Required method fn
pos
(&self) ->
Position
; }
Required Methods
§
Source
fn
pos
(&self) ->
Position
Position of the object.
Implementors
§
Source
§
impl
HasPosition
for
ObjectWithPosition
Source
§
impl
HasPosition
for
StructureObject
Source
§
impl
HasPosition
for
Position
Source
§
impl
HasPosition
for
RoomPosition
Source
§
impl<T>
HasPosition
for T
where T:
AsRef
<
RoomObject
>,