[][src]Function swipc_gen::gen_rust_code::format_ret_ty

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

Format the return type of a function.

IPC Buffers are skipped from the return types, since they are handled by the argument formatter instead. Buffers are passed as mutable reference arguments.

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