pub fn find<S: AsRef<str>>(&self, alias_or_name: S) -> Option<Rc<Category>> {
        let lc = alias_or_name.as_ref().to_lowercase();
        match self.by_name_or_alias.get(&lc) {
            Some(cat) => Some(cat.clone()),
            None => None,
        }
    }
/// Find a category by its name of alias
Find a category by its name of alias
Find a category by its name of alias
pub fn find<S: AsRef<str>>(&self, alias_or_name: S) -> Option<Rc<Category>> {
        let lc = alias_or_name.as_ref().to_lowercase();
        match self.by_name_or_alias.get(&lc) {
            Some(cat) => Some(cat.clone()),
            None => None,
        }
    }
pub fn find < S : AsRef < str > > ( & self , alias_or_name : S ) -> Option < Rc < Category > > { let lc = alias_or_name . as_ref ( ) . to_lowercase ( ) ; match self . by_name_or_alias . get ( & lc ) { Some ( cat ) => Some ( cat . clone ( ) ) , None => None , } }
Find a category by its name of alias
Find a category by its name of alias
&self
alias_or_name
S