Trait rscache::Loader[][src]

pub trait Loader<T: Definition>: Sized {
    fn new<S: Store>(cache: &Cache<S>) -> Result<Self>;
fn load(&self, id: u16) -> Option<&T>; }
Expand description

The core of each Loader tasked with loading certain definitions.

Required methods

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

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

Implementors

impl Loader<ItemDefinition> for rscache::ldr::osrs::ItemLoader[src]

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

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

impl Loader<NpcDefinition> for NpcLoader[src]

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

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

impl Loader<ObjectDefinition> for ObjectLoader[src]

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

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

impl Loader<ItemDefinition> for rscache::ldr::rs3::ItemLoader[src]

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

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