[][src]Trait rscache::Loader

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

The core of each Loader tasked with loading certain definitions.

Required methods

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

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

Loading content...

Implementors

impl Loader<ItemDefinition> for ItemLoader[src]

impl Loader<NpcDefinition> for NpcLoader[src]

impl Loader<ObjectDefinition> for ObjectLoader[src]

Loading content...