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