[][src]Struct rscache::ldr::osrs::ObjectLoader

pub struct ObjectLoader {
    pub objs: HashMap<u16, ObjectDefinition>,
}

Loads all object definitions from the current cache.

Fields

objs: HashMap<u16, ObjectDefinition>

Implementations

impl ObjectLoader[src]

pub fn new<S: Store>(cache: &Cache<S>) -> Result<Self>[src]

pub fn load(&self, id: u16) -> Option<&ObjectDefinition>[src]

Trait Implementations

impl Clone for ObjectLoader[src]

impl Debug for ObjectLoader[src]

impl Default for ObjectLoader[src]

impl Eq for ObjectLoader[src]

impl Loader<ObjectDefinition> for ObjectLoader[src]

impl PartialEq<ObjectLoader> for ObjectLoader[src]

impl StructuralEq for ObjectLoader[src]

impl StructuralPartialEq for ObjectLoader[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.