[][src]Trait rask_engine::resources::GetStore

pub trait GetStore<T> {
    fn get<U: Into<usize> + Debug + Copy>(
        &self,
        id: U
    ) -> Result<&T, EngineError>;
fn store(&mut self, data: T, id: usize) -> Result<(), EngineError>; }

Required methods

fn get<U: Into<usize> + Debug + Copy>(&self, id: U) -> Result<&T, EngineError>

Retrieve a resource from the library.

fn store(&mut self, data: T, id: usize) -> Result<(), EngineError>

Store a resource to the library

Loading content...

Implementors

impl GetStore<Sound> for ResourceTable[src]

impl GetStore<Texture> for ResourceTable[src]

impl GetStore<Box<Character>> for ResourceTable[src]

Loading content...