pub fn from_file<P: AsRef<Path>>(display: &Display, path: P) -> TextureResult{
        image::open(path)
            .map_err(From::from)
            .and_then(|img| Texture::new(display, img.to_rgba()))
    }
/// Creates a `Texture` from a file
Creates a `Texture` from a file
Creates a ` Texture ` from a file
pub fn from_file<P: AsRef<Path>>(display: &Display, path: P) -> TextureResult{
        image::open(path)
            .map_err(From::from)
            .and_then(|img| Texture::new(display, img.to_rgba()))
    }
pub fn from_file < P : AsRef < Path > > ( display : & Display , path : P ) -> TextureResult { image :: open ( path ) . map_err ( From :: from ) . and_then ( | img | Texture :: new ( display , img . to_rgba ( ) ) ) }
Creates a `Texture` from a file
Creates a ` Texture ` from a file
display
&Display
path
P
display
&Display
path
P