/// The main function which is called when starting the code generation.
The main function which is called when starting the code generation.
The main function which is called when starting the code generation .
fn prog(&self, prog: &IDLProg) -> Result<String> {
        self.start()?;
        let output = self.header()?
            + &self.declarations(&prog.decs)?
            + &match &prog.actor {
                None => String::new(),
                Some(IDLType::ServT(bindings)) => self.service(bindings)?,
                Some(IDLType::VarT(_)) => unimplemented!(),
                _ => unreachable!(),
            }
            + &self.footer()?;
        self.done(output)
    }
fn prog ( & self , prog : & IDLProg ) -> Result < String > { self . start ( ) ? ; let output = self . header ( ) ? + & self . declarations ( & prog . decs ) ? + & match & prog . actor { None => String :: new ( ) , Some ( IDLType :: ServT ( bindings ) ) => self . service ( bindings ) ? , Some ( IDLType :: VarT ( _ ) ) => unimplemented ! ( ) , _ => unreachable ! ( ) , } + & self . footer ( ) ? ; self . done ( output ) }
The main function which is called when starting the code generation.
The main function which is called when starting the code generation .
&self
prog
&IDLProg