pub fn add_method<N>(mut self, name: N, method: Method) -> Self
        where N: ToString,
    {
        self.methods.insert(name.to_string(), method);

        self
    }
/// Add a method to the interface.
Add a method to the interface.
Add a method to the interface .
pub fn add_method<N>(mut self, name: N, method: Method) -> Self
        where N: ToString,
    {
        self.methods.insert(name.to_string(), method);
        self
    }
pub fn add_method < N > ( mut self , name : N , method : Method ) -> Self where N : ToString , { self . methods . insert ( name . to_string ( ) , method ) ; self }
Add a method to the interface.
Add a method to the interface .
mut self
name
N
method
Method