ivy-resources 0.10.3

Handle based resource management and shared state
1
2
3
4
5
6
7
8
9
10
11
12
use crate::Resources;

/// Trait for loading a resource from other resources and supplied info like
/// filename or struct.
pub trait LoadResource {
    type Info;
    type Error;

    fn load(resources: &Resources, info: &Self::Info) -> Result<Self, Self::Error>
    where
        Self: Sized;
}