Skip to main content

signature

Function signature 

Source
pub fn signature(
    receiver: &Type,
    name: &str,
    type_arg: Option<&Type>,
) -> Option<Type>
Expand description

Returns the only applicable signature, excluding the implicit receiver.

Use signatures when choosing an overload such as transpose by arity.