Skip to main content

Module trait_signature

Module trait_signature 

Source
Expand description

Infer inherited argument types from a concrete method item, not copied paths.

Re-exportsΒ§

use proc_macro2::Span; πŸ”’
use proc_macro2::TokenStream; πŸ”’
use quote::format_ident; πŸ”’
use quote::quote; πŸ”’

FunctionsΒ§

argument_ident πŸ”’
callable πŸ”’
Foreign-ABI methods are not FnOnce items. A never-called closure presents their argument types to the same inference helper.
setup πŸ”’
This local generic function only inspects a callable’s signature. It never calls it, constructs an argument, or adds conversion bounds to the trait.