1 2 3 4 5 6 7 8 9 10 11 12 13
use texture::Texture; pub use self::image_importer::ImageImporter; mod image_importer; pub type ImportResult<T> = Result<T, String>; pub trait Importer<I> { type Texture: Texture; fn import(input: I) -> ImportResult<Self::Texture>; }