Trait rscache::Loader [−][src]
pub trait Loader: Sized {
type Definition: Definition;
fn new<S: Store>(cache: &Cache<S>) -> Result<Self>;
fn load(&self, id: u32) -> Option<&Self::Definition>;
}
Expand description
The core of each Loader tasked with loading certain definitions.