pub fn from_file<P>(path: P) -> Result<Texture, TextureError> where P: AsRef<Path> {
        let mut texture = Texture::new();
        texture.load_file(path)?;
        Ok(texture)
    }
/// Creates a texture from a image file.
Creates a texture from a image file.
Creates a texture from a image file .
pub fn from_file<P>(path: P) -> Result<Texture, TextureError> where P: AsRef<Path> {
        let mut texture = Texture::new();
        texture.load_file(path)?;
        Ok(texture)
    }
pub fn from_file < P > ( path : P ) -> Result < Texture , TextureError > where P : AsRef < Path > { let mut texture = Texture :: new ( ) ; texture . load_file ( path ) ? ; Ok ( texture ) }
Creates a texture from a image file.
Creates a texture from a image file .
path
P
path
P