pub fn find_texture<P: AsRef<Path>>(&self, path: P) -> Option<Texture> {
        for texture_entry in self.textures.iter() {
            if texture_entry.state().path() == path.as_ref() {
                return Some(texture_entry.value.clone());
            }
        }
        None
    }
/// Tries to find texture by its path. Returns None if no such texture was found.
Tries to find texture by its path. Returns None if no such texture was found.
Tries to find texture by its path . Returns None if no such texture was found .
pub fn find_texture<P: AsRef<Path>>(&self, path: P) -> Option<Texture> {
        for texture_entry in self.textures.iter() {
            if texture_entry.state().path() == path.as_ref() {
                return Some(texture_entry.value.clone());
            }
        }
        None
    }
pub fn find_texture < P : AsRef < Path > > ( & self , path : P ) -> Option < Texture > { for texture_entry in self . textures . iter ( ) { if texture_entry . state ( ) . path ( ) == path . as_ref ( ) { return Some ( texture_entry . value . clone ( ) ) ; } } None }
Tries to find texture by its path.
Tries to find texture by its path .
&self
path
P