[][src]Function swipc_gen::gen_rust_code::format_args

fn format_args(
    args: &[(Alias, Option<String>)],
    ret: &[(Alias, Option<String>)],
    server: bool,
    async_: bool
) -> Result<String, Error>

Format the arguments of a function.

Return buffers are also formatted in this function, since they will be passed as mutable references to the function in the generated rust code.

Returns a coma separated list of name: rust_type.

See get_type to find the mapping of a SwIPC type to a Rust type.