Docs.rs
  • screeps-game-api-0.21.0
    • screeps-game-api 0.21.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 normal
      • bincode ^1.3 dev
      • wasm-bindgen-test ^0.3 dev
    • Versions
    • 44.4% 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
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

screeps0.21.0

JsCollectionFromValue

Required Methods

  • from_value

Implementations on Foreign Types

  • (K, V)
  • JsString
  • String
  • u8

Object Safety

Implementors

In screeps::js_collections

Trait screeps::js_collections::JsCollectionFromValue

source ·
pub trait JsCollectionFromValue {
    // Required method
    fn from_value(val: JsValue) -> Self;
}

Required Methods§

source

fn from_value(val: JsValue) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl JsCollectionFromValue for u8

source§

fn from_value(val: JsValue) -> u8

source§

impl JsCollectionFromValue for String

source§

fn from_value(val: JsValue) -> String

source§

impl JsCollectionFromValue for JsString

source§

fn from_value(val: JsValue) -> JsString

source§

impl<K, V> JsCollectionFromValue for (K, V)
where K: JsCollectionFromValue, V: JsCollectionFromValue,

source§

fn from_value(val: JsValue) -> Self

Implementors§

source§

impl JsCollectionFromValue for Direction

source§

impl JsCollectionFromValue for PowerType

source§

impl JsCollectionFromValue for StructureObject

source§

impl JsCollectionFromValue for MyOrder

source§

impl JsCollectionFromValue for RoomName

source§

impl JsCollectionFromValue for AccountPowerCreep

source§

impl JsCollectionFromValue for PowerInfo

source§

impl JsCollectionFromValue for ConstructionSite

source§

impl JsCollectionFromValue for Creep

source§

impl JsCollectionFromValue for Flag

source§

impl JsCollectionFromValue for Room

source§

impl JsCollectionFromValue for StructureSpawn

source§

impl<T> JsCollectionFromValue for ObjectId<T>