Skip to content

Assist to derive type alias = signature for a function #18343

@Veykril

Description

@Veykril

Given some function

unsafe fn foo(param: u32) -> String { ... }

with the cursor on foo we should offer an assist that generates a type alias for the function's signature

type FooFn = unsafe fn(u32) -> String;

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions