Trait yareio_sys::TryGetByID[][src]

pub trait TryGetByID<ID: JsCast, V: JsCast> where
    Self: AsRef<JsValue> + Deref<Target = Object>, 
{ fn get(&self, id: &ID) -> Option<V> { ... } }
Expand description

This trait is implemented for the global objects that give mappings of IDs to entities: spirits, bases, outposts, and stars. It allows faillibly fetching entities by their ID.

Provided methods

Returns the value for this key.

Implementors