fn parse_texture_map(args: &[&str]) -> ObjResult<MtlTextureMap> {
    match args {
        [file] => Ok(MtlTextureMap {
            file: (*file).to_string(),
        }),
        _ => make_error!(WrongNumberOfArguments, "Expected exactly 1 argument"),
    }
}
/// Parses a texture map specification from the arguments of a statement
Parses a texture map specification from the arguments of a statement
Parses a texture map specification from the arguments of a statement
fn parse_texture_map(args: &[&str]) -> ObjResult<MtlTextureMap> {
    match args {
        [file] => Ok(MtlTextureMap {
            file: (*file).to_string(),
        }),
        _ => make_error!(WrongNumberOfArguments, "Expected exactly 1 argument"),
    }
}
fn parse_texture_map ( args : & [ & str ] ) -> ObjResult < MtlTextureMap > { match args { [ file ] => Ok ( MtlTextureMap { file : ( * file ) . to_string ( ) , } ) , _ => make_error ! ( WrongNumberOfArguments " " ) , } }
Parses a texture map specification from the arguments of a statement
Parses a texture map specification from the arguments of a statement
args
&[&str]