pub fn add_tag(&mut self, tag_name: &str) -> bool {
        // can also use iter_mut() to do stuff like in place editing
        match self.tags.iter().find(|t| t.get_name() == tag_name) {
            Some(_val) => false,
            None => {
                self.tags.push(EmberTag::new(tag_name));
                true
            }
        }
    }
// if tag with the same name does not exist, add it
if tag with the same name does not exist, add it
if tag with the same name does not exist add it
pub fn add_tag(&mut self, tag_name: &str) -> bool {
        // can also use iter_mut() to do stuff like in place editing
        match self.tags.iter().find(|t| t.get_name() == tag_name) {
            Some(_val) => false,
            None => {
                self.tags.push(EmberTag::new(tag_name));
                true
            }
        }
    }
pub fn add_tag ( & mut self , tag_name : & str ) -> bool { // can also use iter_mut() to do stuff like in place editing match self . tags . iter ( ) . find ( | t | t . get_name ( ) == tag_name ) { Some ( _val ) => false , None => { self . tags . push ( EmberTag :: new ( tag_name ) ) ; true } } }
if tag with the same name does not exist, add it
if tag with the same name does not exist add it
&mut self
tag_name
&str
&mut self
tag_name
&str