pub fn new(name: &str) -> Self {
        Function {
            name: name.to_string(),
            docs: None,
            allow: None,
            vis: None,
            generics: vec![],
            arg_self: None,
            args: vec![],
            ret: None,
            bounds: vec![],
            body: Some(vec![]),
            attributes: vec![],
            extern_abi: None,
        }
    }
/// Return a new function definition.
Return a new function definition.
Return a new function definition .
pub fn new(name: &str) -> Self {
        Function {
            name: name.to_string(),
            docs: None,
            allow: None,
            vis: None,
            generics: vec![],
            arg_self: None,
            args: vec![],
            ret: None,
            bounds: vec![],
            body: Some(vec![]),
            attributes: vec![],
            extern_abi: None,
        }
    }
pub fn new ( name : & str ) -> Self { Function { name : name . to_string ( ) , docs : None , allow : None , vis : None , generics : vec ! [ ] , arg_self : None , args : vec ! [ ] , ret : None , bounds : vec ! [ ] , body : Some ( vec ! [ ] ) , attributes : vec ! [ ] , extern_abi : None , } }
Return a new function definition.
Return a new function definition .
name
&str
name
&str