Docs.rs
screeps-game-api-0.20.1
screeps-game-api 0.20.1
Docs.rs crate page
MIT
Links
Documentation
Repository
crates.io
Source
Owners
daboross
shanemadden
Dependencies
arrayvec ^0.7
normal
enum-iterator ^1.4
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
normal
bincode ^1.3
dev
wasm-bindgen-test ^0.3
dev
Versions
43.57%
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
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
screeps
0.20.1
HasPosition
Required Methods
pos
Implementors
In screeps::traits
?
Trait
screeps
::
traits
::
HasPosition
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
>,