Type Alias tobj::MTLLoadResult

source ·
pub type MTLLoadResult = Result<(Vec<Material>, AHashMap<String, usize>), LoadError>;
Expand description

A Result containing all the materials loaded from the file and a map of MTL name to index. Or an error that occured while loading.

Aliased Type§

enum MTLLoadResult {
    Ok((Vec<Material>, AHashMap<String, usize>)),
    Err(LoadError),
}

Variants§

§1.0.0

Ok((Vec<Material>, AHashMap<String, usize>))

Contains the success value

§1.0.0

Err(LoadError)

Contains the error value