fn declare<'a, W: Write>(
        method: &'a Method,
        sink: &'a mut W,
    ) -> Result<(TypedMessage, TypedMessage)> {
        write!(sink, "{}(", method.name)?;
        // Write parameters list
        let mut first = true;
        for param in &method.params {
            if !first {
                write!(sink, ",")?;
            }
            first = false;
            write!(sink, "{}", param.name)?;
        }
        write!(sink, ")")?;

        MethodWriter::get_types(method)
    }
// Returns Request, Response as TypedMessage and writes the method signature
Returns Request, Response as TypedMessage and writes the method signature
Returns Request Response as TypedMessage and writes the method signature
fn declare<'a, W: Write>(
        method: &'a Method,
        sink: &'a mut W,
    ) -> Result<(TypedMessage, TypedMessage)> {
        write!(sink, "{}(", method.name)?;
        // Write parameters list
        let mut first = true;
        for param in &method.params {
            if !first {
                write!(sink, ",")?;
            }
            first = false;
            write!(sink, "{}", param.name)?;
        }
        write!(sink, ")")?;
        MethodWriter::get_types(method)
    }
fn declare < ' a , W : Write > ( method : & ' a Method , sink : & ' a mut W , ) -> Result < ( TypedMessage , TypedMessage ) > { write ! ( sink " " method name ) ? ; // Write parameters list let mut first = true ; for param in & method . params { if ! first { write ! ( sink " " ) ? ; } first = false ; write ! ( sink " " param name ) ? ; } write ! ( sink " " ) ? ; MethodWriter :: get_types ( method ) }
Returns Request, Response as TypedMessage and writes the method signature
Returns Request Response as TypedMessage and writes the method signature
method
&'a Method
sink
&'a mut W
method
&'a Method
sink
&'a mut W