pub fn add_hello(
        &mut self,
        _ctx: &Context,
        language: String,
        hello_world: String,
    ) -> Result<(), Error> {
        eprintln!("Adding \"{}\" for \"{}\"", hello_world, language);
        match self.hello_worlds.entry(language) {
            Entry::Vacant(vacant) => vacant.insert(hello_world),
            Entry::Occupied(_) => return Err(Error::DuplicateEntry),
        };
        Ok(())
    }
/// Add a new language Hello World! pair.
Add a new language Hello World. pair.
Add a new language Hello World . pair .
pub fn add_hello(
        &mut self,
        _ctx: &Context,
        language: String,
        hello_world: String,
    ) -> Result<(), Error> {
        eprintln!("Adding \"{}\" for \"{}\"", hello_world, language);
        match self.hello_worlds.entry(language) {
            Entry::Vacant(vacant) => vacant.insert(hello_world),
            Entry::Occupied(_) => return Err(Error::DuplicateEntry),
        };
        Ok(())
    }
pub fn add_hello ( & mut self , _ctx : & Context , language : String , hello_world : String , ) -> Result < ( ) , Error > { eprintln ! ( " \" \" \" \" " hello_world language ) ; match self . hello_worlds . entry ( language ) { Entry :: Vacant ( vacant ) => vacant . insert ( hello_world ) , Entry :: Occupied ( _ ) => return Err ( Error :: DuplicateEntry ) , } ; Ok ( ( ) ) }
Add a new language Hello World!
Add a new language Hello World!
&mut self
_ctx
&Context
language
String
hello_world
String