pub fn start_method_default(&mut self, s: &mut String, property: &Resolver, method: &Method) {
        let link = &format!("<a id=\"func-{}\"></a>", method.name);
        self.encode(
            s,
            vec![
                Event::Start(Tag::Heading(3)),
                Event::Html(CowStr::Borrowed(link)),
            ],
        );
        let mut method_header = String::from("func ");
        method_header.push_str(&method.name);
        method_header.push('(');
        for (index, (name, typ, _)) in method.parameters.iter().enumerate() {
            method_header.push_str(&name);
            method_header.push_str(": ");
            self.encode(s, vec![Event::Text(CowStr::Borrowed(&method_header))]);
            method_header.clear();
            self.encode(s, property.encode_type(typ));
            if index + 1 != method.parameters.len() {
                method_header.push_str(", ");
            }
        }
        method_header.push_str(") -> ");
        let mut last_events = vec![Event::Text(CowStr::Borrowed(&method_header))];
        last_events.extend(property.encode_type(&method.return_type));
        last_events.push(Event::End(Tag::Heading(3)));
        last_events.push(Event::Rule);
        self.encode(s, last_events);
    }
/// Default start_method implementation, implemented on `dyn Callbacks` to avoid
/// code duplication.
///
/// This will create a level 3 header that looks like (in markdown):
/// ```markdown
/// ### <a id="func-name"></a>func name(arg1: [type](link), ...) -> [type](link)
/// ________
/// ```
///
/// With appropriate linking.
Default start_method implementation, implemented on `dyn Callbacks` to avoid
code duplication.

This will create a level 3 header that looks like (in markdown):
```markdown
Default start_method implementation implemented on ` dyn Callbacks ` to avoid code duplication . This will create a level 3 header that looks like ( in markdown ) : ` ` ` markdown
pub fn start_method_default(&mut self, s: &mut String, property: &Resolver, method: &Method) {
        let link = &format!("<a id=\"func-{}\"></a>", method.name);
        self.encode(
            s,
            vec![
                Event::Start(Tag::Heading(3)),
                Event::Html(CowStr::Borrowed(link)),
            ],
        );
        let mut method_header = String::from("func ");
        method_header.push_str(&method.name);
        method_header.push('(');
        for (index, (name, typ, _)) in method.parameters.iter().enumerate() {
            method_header.push_str(&name);
            method_header.push_str(": ");
            self.encode(s, vec![Event::Text(CowStr::Borrowed(&method_header))]);
            method_header.clear();
            self.encode(s, property.encode_type(typ));
            if index + 1 != method.parameters.len() {
                method_header.push_str(", ");
            }
        }
        method_header.push_str(") -> ");
        let mut last_events = vec![Event::Text(CowStr::Borrowed(&method_header))];
        last_events.extend(property.encode_type(&method.return_type));
        last_events.push(Event::End(Tag::Heading(3)));
        last_events.push(Event::Rule);
        self.encode(s, last_events);
    }
pub fn start_method_default ( & mut self , s : & mut String , property : & Resolver , method : & Method ) { let link = & format ! ( " \" \" " method name ) ; self . encode ( s , vec ! [ Event Start ( Tag Heading ( 3 ) ) Event Html ( CowStr Borrowed ( link ) ) ] , ) ; let mut method_header = String :: from ( " " ) ; method_header . push_str ( & method . name ) ; method_header . push ( '(' ) ; for ( index , ( name , typ , _ ) ) in method . parameters . iter ( ) . enumerate ( ) { method_header . push_str ( & name ) ; method_header . push_str ( " " ) ; self . encode ( s , vec ! [ Event Text ( CowStr Borrowed ( method_header ) ) ] ) ; method_header . clear ( ) ; self . encode ( s , property . encode_type ( typ ) ) ; if index + 1 != method . parameters . len ( ) { method_header . push_str ( " " ) ; } } method_header . push_str ( " " ) ; let mut last_events = vec ! [ Event Text ( CowStr Borrowed ( method_header ) ) ] ; last_events . extend ( property . encode_type ( & method . return_type ) ) ; last_events . push ( Event :: End ( Tag :: Heading ( 3 ) ) ) ; last_events . push ( Event :: Rule ) ; self . encode ( s , last_events ) ; }
Default start_method implementation, implemented on `dyn Callbacks` to avoid
code duplication.
Default start_method implementation implemented on ` dyn Callbacks ` to avoid code duplication .
&mut self
s
&mut String
property
&Resolver
method
&Method
&mut self
s
&mut String
property
&Resolver
method
&Method
<a id="func-name"></a>func name(arg1: [type](link), ...) -> [type](link)


With appropriate linking.
With appropriate linking .